Implementation notes: amd64, hunsnivy, crypto_hash/nasha256

Computer: hunsnivy
Microarchitecture: amd64; Ivy Bridge+AES (306a9)
Architecture: amd64
CPU ID: GenuineIntel-000306a9-bfebfbff
SUPERCOP version: 20240625
Operation: crypto_hash
Primitive: nasha256
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
2430428193 0 13108838886 804 131992T:opt_v4clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2498446574 0 13108857504 812 131992T:opt_v4clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2505544585 0 13108857152 812 131992T:opt_v4clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2519134380 0 13108847144 812 131992T:opt_v4clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2594732374 0 13108842606 804 131992T:opt_v4clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2772335309 0 13110447344 780 132056T:opt_v4gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2800632580 0 13110443600 780 132056T:opt_v4gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2824830397 0 13110441079 772 132056T:opt_v4gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3007610749 0 021768 780 952T:optgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3015715054 0 027096 780 952T:optgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
308608560 0 019239 772 952T:optgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3135812890 0 025840 812 888T:optclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3136513084 0 025944 812 888T:optclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3147713252 0 027792 812 888T:optclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
320839185 0 019878 804 888T:optclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
337389558 0 019774 804 888T:optclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
347537987 0 017675 756 920T:optgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3500828314 0 13110438011 756 132024T:opt_v4gcc_-march=native_-mtune=native_-Os_-fwrapv_-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)