Implementation notes: amd64, samba, crypto_kem/limasp1306cca

Computer: samba
Microarchitecture: amd64; Skylake (506e3)
Architecture: amd64
CPU ID: GenuineIntel-000506e3-bfebfbff
SUPERCOP version: 20240625
Operation: crypto_kem
Primitive: limasp1306cca
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
548555215989 1512 591620177236 2396 593376T:optclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
560085016469 1512 591620178238 2388 593472T:optclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
562878825533 1524 591648189716 2404 593440T:optgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
573720025285 1512 591620190548 2396 593472T:optclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
594964023959 1512 591620188932 2396 593408T:optclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
613735322813 1512 591620186588 2404 593376T:optclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
617950317104 1524 591648178620 2404 593440T:optgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
623321119539 1524 591648181572 2404 593440T:optgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
677835915487 1524 591648175844 2396 593408T:optgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
3575514821374 432 591364185084 1324 593120T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
3576921722841 432 591364187748 1316 593120T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
3612144924023 432 591364189236 1316 593184T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
3977547123276 424 591392187396 1300 593184T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
4327268815795 432 591364177358 1308 593184T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
4498800014134 432 591364175340 1316 593120T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
4891172016254 424 591392177692 1300 593184T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
5002633318385 424 591392180332 1300 593184T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
5181887614706 424 591392175052 1292 593152T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625

Compiler output


lima.c: lima.c:147:20: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
lima.c:        rhs=11*sqrt(fabs(2*N))*3.16;              // Accepting condition for LIMA_2p
lima.c:                    ^
lima.c: lima.c:147:20: note: use function 'abs' instead
lima.c:        rhs=11*sqrt(fabs(2*N))*3.16;              // Accepting condition for LIMA_2p
lima.c:                    ^~~~
lima.c:                    abs
lima.c: lima.c:155:20: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
lima.c:        rhs=11*sqrt(fabs(4*N))*3.16;              // Accepting condition for LIMA_sp
lima.c:                    ^
lima.c: lima.c:155:20: note: use function 'abs' instead
lima.c:        rhs=11*sqrt(fabs(4*N))*3.16;              // Accepting condition for LIMA_sp
lima.c:                    ^~~~
lima.c:                    abs
lima.c: 2 warnings generated.

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

Compiler output


xof.c: xof.c: In function 'KDF':
xof.c: xof.c:38:10: warning: 'empty' may be used uninitialized [-Wmaybe-uninitialized]
xof.c:    38 |   return KMAC256(k,(BitLength)(k_len<<3),empty,0,(BitSequence*) key,(BitLength)(key_len<<3),D,8);
xof.c:       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xof.c: In file included from xof.h:11,
xof.c:                  from xof.c:1:
xof.c: .../supercop-data/samba/amd64/include/libkeccak.a.headers/SP800-185.h:255:5: note: by argument 3 of type 'const BitSequence *' {aka 'const unsigned char *'} to 'KMAC256' declared here
xof.c:   255 | int KMAC256(const BitSequence *key, BitLength keyBitLen, const BitSequence *input, BitLength inputBitLen,
xof.c:       |     ^~~~~~~
xof.c: xof.c:35:20: note: 'empty' declared here
xof.c:    35 |   BitSequence D[1],empty[1];
xof.c:       |                    ^~~~~

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

Compiler output


lima.c: lima.c:91:20: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
lima.c:        rhs=11*sqrt(fabs(2*N))*3.16;              // Accepting condition for LIMA_2p
lima.c:                    ^
lima.c: lima.c:91:20: note: use function 'abs' instead
lima.c:        rhs=11*sqrt(fabs(2*N))*3.16;              // Accepting condition for LIMA_2p
lima.c:                    ^~~~
lima.c:                    abs
lima.c: lima.c:91:20: note: include the header <stdlib.h> or explicitly provide a declaration for 'abs'
lima.c: lima.c:95:20: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
lima.c:      { rhs=11*sqrt(fabs(4*N))*3.16;              // Accepting condition for LIMA_sp
lima.c:                    ^
lima.c: lima.c:95:20: note: use function 'abs' instead
lima.c:      { rhs=11*sqrt(fabs(4*N))*3.16;              // Accepting condition for LIMA_sp
lima.c:                    ^~~~
lima.c:                    abs
lima.c: lima.c:95:20: note: include the header <stdlib.h> or explicitly provide a declaration for 'abs'
lima.c: 2 warnings generated.

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