diff options
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/run_tool.sh | 14 | ||||
| -rw-r--r-- | tools/stats_tables_h48/stats_tables_h48.c | 2 |
2 files changed, 2 insertions, 14 deletions
diff --git a/tools/run_tool.sh b/tools/run_tool.sh index 14d0e45..495d68c 100755 --- a/tools/run_tool.sh +++ b/tools/run_tool.sh | |||
| @@ -5,19 +5,7 @@ if [ -z "$TOOL" ]; then | |||
| 5 | exit 1 | 5 | exit 1 |
| 6 | fi | 6 | fi |
| 7 | 7 | ||
| 8 | CC="cc -std=c99 -pedantic -Wall -Wextra \ | 8 | CC="$CC -D_POSIX_C_SOURCE=199309L" |
| 9 | -Wno-unused-parameter -Wno-unused-function -D$CUBETYPE \ | ||
| 10 | -D_POSIX_C_SOURCE=199309L" | ||
| 11 | |||
| 12 | if [ -n "$DEBUG" ]; then | ||
| 13 | CC="$CC -fsanitize=address -g3" | ||
| 14 | CUBEOBJ="debugcube.o" | ||
| 15 | else | ||
| 16 | CC="$CC -O3" | ||
| 17 | CUBEOBJ="cube.o" | ||
| 18 | fi | ||
| 19 | |||
| 20 | [ "$CUBETYPE" = "CUBE_AVX2" ] && CC="$CC -mavx2" | ||
| 21 | 9 | ||
| 22 | BIN="tools/run" | 10 | BIN="tools/run" |
| 23 | d="$(date +'%Y-%m-%d-%H-%M-%S')" | 11 | d="$(date +'%Y-%m-%d-%H-%M-%S')" |
diff --git a/tools/stats_tables_h48/stats_tables_h48.c b/tools/stats_tables_h48/stats_tables_h48.c index fc8c981..7c6bc3c 100644 --- a/tools/stats_tables_h48/stats_tables_h48.c +++ b/tools/stats_tables_h48/stats_tables_h48.c | |||
| @@ -127,7 +127,7 @@ int getdata(int64_t size) { | |||
| 127 | return 0; | 127 | return 0; |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | int main() { | 130 | int main(void) { |
| 131 | int64_t size; | 131 | int64_t size; |
| 132 | 132 | ||
| 133 | srand(time(NULL)); | 133 | srand(time(NULL)); |
