summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2023-04-26 13:13:47 +0200
committerTyge Lovset <[email protected]>2023-04-26 13:13:47 +0200
commit9d5766ae528595050dcfe0db4c1c3c0c058b186c (patch)
tree07b330e220fce0590aa46caa95be72884ce9008b
parentbf118447590bd10d8c6b205a19b25038d84274c2 (diff)
downloadSTC-modified-9d5766ae528595050dcfe0db4c1c3c0c058b186c.tar.gz
STC-modified-9d5766ae528595050dcfe0db4c1c3c0c058b186c.zip
Internal.
-rw-r--r--include/stc/cmap.h1
-rw-r--r--include/stc/forward.h2
-rw-r--r--misc/benchmarks/plotbench/run_clang.sh10
-rw-r--r--misc/benchmarks/plotbench/run_gcc.sh10
4 files changed, 12 insertions, 11 deletions
diff --git a/include/stc/cmap.h b/include/stc/cmap.h
index 533e8a16..65e4a544 100644
--- a/include/stc/cmap.h
+++ b/include/stc/cmap.h
@@ -53,6 +53,7 @@ int main(void) {
#include "forward.h"
#include <stdlib.h>
#include <string.h>
+struct chash_slot { uint8_t hashx; };
typedef struct { intptr_t idx; uint8_t hashx, found; } chash_bucket;
#endif // CMAP_H_INCLUDED
diff --git a/include/stc/forward.h b/include/stc/forward.h
index ae49dc31..b534e48b 100644
--- a/include/stc/forward.h
+++ b/include/stc/forward.h
@@ -101,7 +101,7 @@ typedef union {
SELF##_node *last; \
} SELF
-typedef struct { uint8_t hashx; } chash_slot;
+typedef struct chash_slot chash_slot;
#define _c_chash_types(SELF, KEY, VAL, MAP_ONLY, SET_ONLY) \
typedef KEY SELF##_key; \
diff --git a/misc/benchmarks/plotbench/run_clang.sh b/misc/benchmarks/plotbench/run_clang.sh
index 096e71be..c9dbac31 100644
--- a/misc/benchmarks/plotbench/run_clang.sh
+++ b/misc/benchmarks/plotbench/run_clang.sh
@@ -1,10 +1,10 @@
exe=''
if [ "$OS" = "Windows_NT" ] ; then exe=".exe" ; fi
-clang++ -I../include -O3 -o cdeq_benchmark$exe cdeq_benchmark.cpp
-clang++ -I../include -O3 -o clist_benchmark$exe clist_benchmark.cpp
-clang++ -I../include -O3 -o cmap_benchmark$exe cmap_benchmark.cpp
-clang++ -I../include -O3 -o csmap_benchmark$exe csmap_benchmark.cpp
-clang++ -I../include -O3 -o cvec_benchmark$exe cvec_benchmark.cpp
+clang++ -I../../include -O3 -o cdeq_benchmark$exe cdeq_benchmark.cpp
+clang++ -I../../include -O3 -o clist_benchmark$exe clist_benchmark.cpp
+clang++ -I../../include -O3 -o cmap_benchmark$exe cmap_benchmark.cpp
+clang++ -I../../include -O3 -o csmap_benchmark$exe csmap_benchmark.cpp
+clang++ -I../../include -O3 -o cvec_benchmark$exe cvec_benchmark.cpp
c='Win-Clang-14.0.1'
./cdeq_benchmark$exe $c
diff --git a/misc/benchmarks/plotbench/run_gcc.sh b/misc/benchmarks/plotbench/run_gcc.sh
index 5249ed1e..14d89b9a 100644
--- a/misc/benchmarks/plotbench/run_gcc.sh
+++ b/misc/benchmarks/plotbench/run_gcc.sh
@@ -1,8 +1,8 @@
-g++ -I../include -O3 -o cdeq_benchmark cdeq_benchmark.cpp
-g++ -I../include -O3 -o clist_benchmark clist_benchmark.cpp
-g++ -I../include -O3 -o cmap_benchmark cmap_benchmark.cpp
-g++ -I../include -O3 -o csmap_benchmark csmap_benchmark.cpp
-g++ -I../include -O3 -o cvec_benchmark cvec_benchmark.cpp
+g++ -I../../include -O3 -o cdeq_benchmark cdeq_benchmark.cpp
+g++ -I../../include -O3 -o clist_benchmark clist_benchmark.cpp
+g++ -I../../include -O3 -o cmap_benchmark cmap_benchmark.cpp
+g++ -I../../include -O3 -o csmap_benchmark csmap_benchmark.cpp
+g++ -I../../include -O3 -o cvec_benchmark cvec_benchmark.cpp
c='Mingw-g++-11.3.0'
./cdeq_benchmark $c