From 1964938ca6abef6e5c81d9dccdf42c55abacb5e9 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 5 Nov 2023 16:29:14 +0100 Subject: Refactoring --- utils/gentranscode.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'utils/gentranscode.sh') diff --git a/utils/gentranscode.sh b/utils/gentranscode.sh index 7749ba7..2f73df7 100755 --- a/utils/gentranscode.sh +++ b/utils/gentranscode.sh @@ -2,8 +2,8 @@ type="${1:-src}" -gcc -DDEBUG h48_to_"$type".c ../src/cube.c -o h48_to_"$type" -gcc -DDEBUG invert.c ../src/cube.c -o invert +gcc -DDEBUG h48_to_"$type".c ../cube.c -o h48_to_"$type" +gcc -DDEBUG invert.c ../cube.c -o invert # Old version genarray() { @@ -22,7 +22,7 @@ genarray() { genfuncs() { for f in transform_??_???.txt; do trans="$(echo $f | sed 's/.*_// ; s/\.txt//')" - printf 'static inline cube_t\ninline_trans_%s' "$trans" + printf 'static inline cube_t\n_trans_%s' "$trans" printf '(cube_t c)\n{\n' printf '\tcube_t ret;\n\n' printf '\tcube_t tn = ' @@ -32,7 +32,7 @@ genfuncs() { printf ';\n\n\tret = compose(tn, c);\n' printf '\tret = compose(ret, ti);\n' if [ -n "$(echo "$trans" | grep "m")" ]; then - printf '\tret = flipallcorners(ret);\n' + printf '\tret = _invertco(ret);\n' fi printf '\n\treturn ret;\n}\n\n' done -- cgit v1.3