Implementation notes: amd64, rumba7, crypto_scalarmult/nistp256

Computer: rumba7
Microarchitecture: amd64; Zen (800f11)
Architecture: amd64
CPU ID: AuthenticAMD-00800f11-178bfbff
SUPERCOP version: 20240625
Operation: crypto_scalarmult
Primitive: nistp256
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
252549017477 30720 040603 31580 1728T:mj32clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
272967716899 30720 041155 31580 1760T:mj32clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
273529512883 30720 036747 31580 1760T:mj32clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
296396714292 30720 038141 31540 1792T:mj32gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
335468810173 30720 031741 31572 1792T:mj32clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
396560711504 30720 032387 31580 1728T:mj32clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
442428412404 30720 035013 31540 1792T:mj32gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
546832010857 30720 030973 31532 1760T:mj32gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
990162612196 30720 033509 31540 1792T:mj32gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625

Compiler output


gep256.c: gep256.c:83:28: warning: sizeof on array function parameter will return size of 'fe *' (aka 'unsigned int (*)[8]') instead of 'gep256' (aka 'unsigned int[3][8]') [-Wsizeof-array-argument]
gep256.c:     for (i = 0; i < sizeof p; ++i) x |= ((unsigned char *)p)[i];
gep256.c:                            ^
gep256.c: gep256.c:78:29: note: declared here
gep256.c: static int isneutral(gep256 p) {
gep256.c:                             ^
gep256.c: gep256.c:92:28: warning: sizeof on array function parameter will return size of 'fe *' (aka 'unsigned int (*)[8]') instead of 'gep256_precomp' (aka 'unsigned int[2][8]') [-Wsizeof-array-argument]
gep256.c:     for (i = 0; i < sizeof p; ++i) x |= ((unsigned char *)p)[i];
gep256.c:                            ^
gep256.c: gep256.c:87:45: note: declared here
gep256.c: static int isneutral_precomp(gep256_precomp p) {
gep256.c:                                             ^
gep256.c: 2 warnings generated.

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

Compiler output


gep256.c: gep256.c: In function 'isneutral':
gep256.c: gep256.c:83:28: warning: 'sizeof' on array function parameter 'p' will return size of 'uint32_t (*)[8]' {aka 'unsigned int (*)[8]'} [-Wsizeof-array-argument]
gep256.c:    83 |     for (i = 0; i < sizeof p; ++i) x |= ((unsigned char *)p)[i];
gep256.c:       |                            ^
gep256.c: gep256.c:78:29: note: declared here
gep256.c:    78 | static int isneutral(gep256 p) {
gep256.c:       |                      ~~~~~~~^
gep256.c: gep256.c: In function 'isneutral_precomp':
gep256.c: gep256.c:92:28: warning: 'sizeof' on array function parameter 'p' will return size of 'uint32_t (*)[8]' {aka 'unsigned int (*)[8]'} [-Wsizeof-array-argument]
gep256.c:    92 |     for (i = 0; i < sizeof p; ++i) x |= ((unsigned char *)p)[i];
gep256.c:       |                            ^
gep256.c: gep256.c:87:45: note: declared here
gep256.c:    87 | static int isneutral_precomp(gep256_precomp p) {
gep256.c:       |                              ~~~~~~~~~~~~~~~^

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