From 0b1930307f41db3ea7552d6b2f4666b33c64d26a Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 9 Jun 2024 20:06:19 +0200 Subject: More cleanup --- old/moves_trans/v2/gentranscode.sh | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 old/moves_trans/v2/gentranscode.sh (limited to 'old/moves_trans/v2/gentranscode.sh') 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 @@ -#!/bin/sh - -type="${1:-src}" - -gcc -DDEBUG h48_to_"$type".c ../cube.c -o h48_to_"$type" -gcc -DDEBUG invert.c ../cube.c -o invert - -lineavx() { printf '#define _trans_cube_%s ' "$1"; } -linesrc() { printf '_static cube_fast_t _trans_cube_%s = ' "$1"; } -sedavx() { sed '1,2s/$/ \\/ ; 3s/$/)/ ; 3q'; } -sedsrc() { sed '3s/$/ };/ ; 3q'; } - -gen() { - for f in transform_??_???.txt; do - trans="$(echo $f | sed 's/.*_// ; s/\.txt//')" - line$type "$trans" - ./h48_to_"$type" <"$f" | sed$type - line$type "${trans}_inverse" - ./invert <"$f" | ./h48_to_"$type" | sed$type - done -} - -gen -rm -f h48_to_"$type" invert -- cgit v1.3