From fb9ae9e41eaf01b3651395fdd450ac1a4743e592 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Fri, 10 Nov 2023 14:44:48 +0100 Subject: Big changes to the interface --- utils/genmovecode.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'utils/genmovecode.sh') diff --git a/utils/genmovecode.sh b/utils/genmovecode.sh index 688ee39..0857f31 100755 --- a/utils/genmovecode.sh +++ b/utils/genmovecode.sh @@ -7,11 +7,11 @@ 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_t\n_move_%s' "$move" - printf '(cube_t c)\n{\n' - printf '\tcube_t m = ' + 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(c, m);\n}\n\n' + printf ';\n\n\treturn compose_fast(c, m);\n}\n\n' done } -- cgit v1.3