diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-10 14:44:48 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-10 14:44:48 +0100 |
| commit | fb9ae9e41eaf01b3651395fdd450ac1a4743e592 (patch) | |
| tree | 8fb29e9b62d40d6407f082f55a7164775154bf78 /utils/genmovecode.sh | |
| parent | 04c3ee1f5acac47650be8d0ffbf90e238df0d12b (diff) | |
| download | nissy-core-fb9ae9e41eaf01b3651395fdd450ac1a4743e592.tar.gz nissy-core-fb9ae9e41eaf01b3651395fdd450ac1a4743e592.zip | |
Big changes to the interface
Diffstat (limited to '')
| -rwxr-xr-x | utils/genmovecode.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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" | |||
| 7 | genfuncs() { | 7 | genfuncs() { |
| 8 | for f in move_??_*.txt; do | 8 | for f in move_??_*.txt; do |
| 9 | move="$(echo $f | sed 's/.*_// ; s/\.txt//')" | 9 | move="$(echo $f | sed 's/.*_// ; s/\.txt//')" |
| 10 | printf 'static inline cube_t\n_move_%s' "$move" | 10 | printf 'static inline cube_fast_t\n_move_%s' "$move" |
| 11 | printf '(cube_t c)\n{\n' | 11 | printf '(cube_fast_t c)\n{\n' |
| 12 | printf '\tcube_t m = ' | 12 | printf '\tcube_fast_t m = ' |
| 13 | ./h48_to_"$type" <"$f" | sed '2,4s/^/\t/' | 13 | ./h48_to_"$type" <"$f" | sed '2,4s/^/\t/' |
| 14 | printf ';\n\n\treturn _compose(c, m);\n}\n\n' | 14 | printf ';\n\n\treturn compose_fast(c, m);\n}\n\n' |
| 15 | done | 15 | done |
| 16 | } | 16 | } |
| 17 | 17 | ||
