diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-06-09 20:06:19 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-06-09 20:06:19 +0200 |
| commit | 0b1930307f41db3ea7552d6b2f4666b33c64d26a (patch) | |
| tree | 6a2558e391f5cc14fa22770cb2791e4a85d84e5e /old/moves_trans/genmovecode.sh | |
| parent | b218c803ae1110b08b4896be0a59177e280c9091 (diff) | |
| download | nissy-core-0b1930307f41db3ea7552d6b2f4666b33c64d26a.tar.gz nissy-core-0b1930307f41db3ea7552d6b2f4666b33c64d26a.zip | |
More cleanup
Diffstat (limited to 'old/moves_trans/genmovecode.sh')
| -rwxr-xr-x | old/moves_trans/genmovecode.sh | 19 |
1 files changed, 0 insertions, 19 deletions
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 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | type="${1:-src}" | ||
| 4 | |||
| 5 | gcc -DDEBUG h48_to_"$type".c ../cube.c -o h48_to_"$type" | ||
| 6 | |||
| 7 | genfuncs() { | ||
| 8 | for f in move_??_*.txt; do | ||
| 9 | move="$(echo $f | sed 's/.*_// ; s/\.txt//')" | ||
| 10 | printf 'static inline cube_fast_t\n_move_%s' "$move" | ||
| 11 | printf '(cube_fast_t c)\n{\n' | ||
| 12 | printf '\tcube_fast_t m = ' | ||
| 13 | ./h48_to_"$type" <"$f" | sed '2,4s/^/\t/' | ||
| 14 | printf ';\n\n\treturn compose_fast(c, m);\n}\n\n' | ||
| 15 | done | ||
| 16 | } | ||
| 17 | |||
| 18 | genfuncs | ||
| 19 | rm -f h48_to_"$type" invert | ||
