From 0b1930307f41db3ea7552d6b2f4666b33c64d26a Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 9 Jun 2024 20:06:19 +0200 Subject: More cleanup --- old/moves_trans/genmovecode.sh | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100755 old/moves_trans/genmovecode.sh (limited to 'old/moves_trans/genmovecode.sh') diff --git a/old/moves_trans/genmovecode.sh b/old/moves_trans/genmovecode.sh deleted file mode 100755 index 0857f31..0000000 --- a/old/moves_trans/genmovecode.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -type="${1:-src}" - -gcc -DDEBUG h48_to_"$type".c ../cube.c -o h48_to_"$type" - -genfuncs() { - for f in move_??_*.txt; do - move="$(echo $f | sed 's/.*_// ; s/\.txt//')" - printf 'static inline cube_fast_t\n_move_%s' "$move" - printf '(cube_fast_t c)\n{\n' - printf '\tcube_fast_t m = ' - ./h48_to_"$type" <"$f" | sed '2,4s/^/\t/' - printf ';\n\n\treturn compose_fast(c, m);\n}\n\n' - done -} - -genfuncs -rm -f h48_to_"$type" invert -- cgit v1.3