Implementation notes: amd64, jasper, crypto_hash/nasha256

Computer: jasper
Microarchitecture: amd64; Tremont (906c0)
Architecture: amd64
CPU ID: GenuineIntel-000906c0-20-bfebfbff
SUPERCOP version: 20240625
Operation: crypto_hash
Primitive: nasha256
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
2075628193 0 13108838926 804 131992T:opt_v4clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2098746574 0 13108857528 812 131992T:opt_v4clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2245034022 0 13108846000 812 131992T:opt_v4clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2245546343 0 13108858688 812 131992T:opt_v4clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2348732561 0 13108842790 804 131992T:opt_v4clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2432637284 0 13110449688 780 132056T:opt_v4gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2440930359 0 13110441087 772 132056T:opt_v4gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2445032936 0 13110444120 780 132056T:opt_v4gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2459017056 0 029472 780 952T:optgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2472911527 0 022720 780 952T:optgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
251478609 0 019343 772 952T:optgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2749012400 0 024448 812 888T:optclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2752712618 0 026976 812 888T:optclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2798512890 0 025864 812 888T:optclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
281879105 0 019838 804 888T:optclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2993828310 0 13110438035 756 132024T:opt_v4gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
300057982 0 017699 756 920T:optgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
306339308 0 019526 804 888T:optclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625

Compiler output


Nasha.c: Nasha.c:243:17: warning: unused variable 'pom' [-Wunused-variable]
Nasha.c:     uint_64t    pom=state->count[1];
Nasha.c:                 ^
Nasha.c: Nasha.c:462:17: warning: unused variable 'pom' [-Wunused-variable]
Nasha.c:     uint_64t    pom=state->count[1];
Nasha.c:                 ^
Nasha.c: Nasha.c:627:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
Nasha.c: }
Nasha.c: ^
Nasha.c: Nasha.c:646:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
Nasha.c: }
Nasha.c: ^
Nasha.c: Nasha.c:656:30: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare]
Nasha.c:        if (hashbitlen != 224 || hashbitlen != 256 || hashbitlen != 384 || hashbitlen!=512)
Nasha.c:            ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
Nasha.c: 5 warnings generated.

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:optclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:optclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:optclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:optclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:optclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


Nasha.c: Nasha.c: In function 'Nasha_Final1':
Nasha.c: Nasha.c:243:17: warning: unused variable 'pom' [-Wunused-variable]
Nasha.c:   243 |     uint_64t    pom=state->count[1];
Nasha.c:       |                 ^~~
Nasha.c: Nasha.c: In function 'Nasha_Final2':
Nasha.c: Nasha.c:462:17: warning: unused variable 'pom' [-Wunused-variable]
Nasha.c:   462 |     uint_64t    pom=state->count[1];
Nasha.c:       |                 ^~~
Nasha.c: Nasha.c: In function 'Update':
Nasha.c: Nasha.c:627:1: warning: control reaches end of non-void function [-Wreturn-type]
Nasha.c:   627 | }
Nasha.c:       | ^
Nasha.c: Nasha.c: In function 'Final':
Nasha.c: Nasha.c:646:1: warning: control reaches end of non-void function [-Wreturn-type]
Nasha.c:   646 | }
Nasha.c:       | ^

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:optgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:optgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:optgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:optgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

Compiler output


Nasha.c: Nasha.c:304:17: warning: unused variable 'pom' [-Wunused-variable]
Nasha.c:     uint_64t    pom=state->count[1];
Nasha.c:                 ^
Nasha.c: Nasha.c:682:17: warning: unused variable 'pom' [-Wunused-variable]
Nasha.c:     uint_64t    pom=state->count[1];
Nasha.c:                 ^
Nasha.c: Nasha.c:815:29: warning: incompatible pointer to integer conversion assigning to 'uint_16t' (aka 'unsigned short') from 'uint_16t [256]' [-Wint-conversion]
Nasha.c:                 ssbox[i][j] = ssbox[i^j];
Nasha.c:                             ^ ~~~~~~~~~~
Nasha.c: Nasha.c:854:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
Nasha.c: }
Nasha.c: ^
Nasha.c: Nasha.c:873:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
Nasha.c: }
Nasha.c: ^
Nasha.c: Nasha.c:883:30: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare]
Nasha.c:        if (hashbitlen != 224 || hashbitlen != 256 || hashbitlen != 384 || hashbitlen!=512)
Nasha.c:            ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
Nasha.c: 6 warnings generated.

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:opt_v4clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:opt_v4clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:opt_v4clang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:opt_v4clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:opt_v4clang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


Nasha.c: Nasha.c: In function 'Nasha_Final1':
Nasha.c: Nasha.c:304:17: warning: unused variable 'pom' [-Wunused-variable]
Nasha.c:   304 |     uint_64t    pom=state->count[1];
Nasha.c:       |                 ^~~
Nasha.c: Nasha.c: In function 'Nasha_Final2':
Nasha.c: Nasha.c:682:17: warning: unused variable 'pom' [-Wunused-variable]
Nasha.c:   682 |     uint_64t    pom=state->count[1];
Nasha.c:       |                 ^~~
Nasha.c: Nasha.c: In function 'Init':
Nasha.c: Nasha.c:815:29: warning: assignment to 'uint_16t' {aka 'short unsigned int'} from 'uint_16t *' {aka 'short unsigned int *'} makes integer from pointer without a cast [-Wint-conversion]
Nasha.c:   815 |                 ssbox[i][j] = ssbox[i^j];
Nasha.c:       |                             ^
Nasha.c: Nasha.c: In function 'Update':
Nasha.c: Nasha.c:854:1: warning: control reaches end of non-void function [-Wreturn-type]
Nasha.c:   854 | }
Nasha.c:       | ^
Nasha.c: Nasha.c: In function 'Final':
Nasha.c: Nasha.c:873:1: warning: control reaches end of non-void function [-Wreturn-type]
Nasha.c:   873 | }
Nasha.c:       | ^

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:opt_v4gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:opt_v4gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:opt_v4gcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:opt_v4gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)