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/v2 | |
| parent | b218c803ae1110b08b4896be0a59177e280c9091 (diff) | |
| download | nissy-core-0b1930307f41db3ea7552d6b2f4666b33c64d26a.tar.gz nissy-core-0b1930307f41db3ea7552d6b2f4666b33c64d26a.zip | |
More cleanup
Diffstat (limited to 'old/moves_trans/v2')
| -rwxr-xr-x | old/moves_trans/v2/genmovecode.sh | 21 | ||||
| -rwxr-xr-x | old/moves_trans/v2/gentranscode.sh | 24 |
2 files changed, 0 insertions, 45 deletions
diff --git a/old/moves_trans/v2/genmovecode.sh b/old/moves_trans/v2/genmovecode.sh deleted file mode 100755 index 9d5fa7a..0000000 --- a/old/moves_trans/v2/genmovecode.sh +++ /dev/null | |||
| @@ -1,21 +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 | lineavx() { printf '#define _move_cube_%s ' "$1"; } | ||
| 8 | linesrc() { printf '_static cube_fast_t _move_cube_%s = ' "$1"; } | ||
| 9 | sedavx() { sed '1,2s/$/ \\/ ; 3s/$/)/ ; 3q'; } | ||
| 10 | sedsrc() { sed '3s/$/ };/ ; 3q'; } | ||
| 11 | |||
| 12 | gen() { | ||
| 13 | for f in move_??_*.txt; do | ||
| 14 | move="$(echo $f | sed 's/.*_// ; s/\.txt//')" | ||
| 15 | line$type "$move" | ||
| 16 | ./h48_to_"$type" <"$f" | sed$type | ||
| 17 | done | ||
| 18 | } | ||
| 19 | |||
| 20 | gen | ||
| 21 | rm -f h48_to_"$type" invert | ||
diff --git a/old/moves_trans/v2/gentranscode.sh b/old/moves_trans/v2/gentranscode.sh deleted file mode 100755 index b9d41b6..0000000 --- a/old/moves_trans/v2/gentranscode.sh +++ /dev/null | |||
| @@ -1,24 +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 | gcc -DDEBUG invert.c ../cube.c -o invert | ||
| 7 | |||
| 8 | lineavx() { printf '#define _trans_cube_%s ' "$1"; } | ||
| 9 | linesrc() { printf '_static cube_fast_t _trans_cube_%s = ' "$1"; } | ||
| 10 | sedavx() { sed '1,2s/$/ \\/ ; 3s/$/)/ ; 3q'; } | ||
| 11 | sedsrc() { sed '3s/$/ };/ ; 3q'; } | ||
| 12 | |||
| 13 | gen() { | ||
| 14 | for f in transform_??_???.txt; do | ||
| 15 | trans="$(echo $f | sed 's/.*_// ; s/\.txt//')" | ||
| 16 | line$type "$trans" | ||
| 17 | ./h48_to_"$type" <"$f" | sed$type | ||
| 18 | line$type "${trans}_inverse" | ||
| 19 | ./invert <"$f" | ./h48_to_"$type" | sed$type | ||
| 20 | done | ||
| 21 | } | ||
| 22 | |||
| 23 | gen | ||
| 24 | rm -f h48_to_"$type" invert | ||
