Implementation notes: amd64, latour, crypto_kem/lima2p1024cca

Computer: latour
Architecture: amd64
CPU ID: GenuineIntel-000006fb-bfebfbff
SUPERCOP version: 20201130
Operation: crypto_kem
Primitive: lima2p1024cca
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
188313315330 1464 260199655 2296 593184T:optclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020090420200826
192020421843 1464 260208161 2304 593184T:optclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020090420200826
192186921859 1464 260208289 2304 593184T:optclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020090420200826
192221120598 1464 260206105 2304 593184T:optclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020090420200826
192273320598 1464 260206105 2304 593184T:optclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020090420200826
197627418570 1524 288204067 2336 593248T:optgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020090420200826
198247524119 1524 288211731 2336 593248T:optgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020090420200826
208365316024 1524 288201115 2336 593248T:optgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020090420200826
221285714533 1524 288198723 2328 593216T:optgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020090420200826
1004751020788 424 4208355 1232 592992T:refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020090420200826
1006167620698 384 4207041 1224 592928T:refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020090420200826
1006831818684 384 4204089 1224 592928T:refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020090420200826
1016656218684 384 4204089 1224 592928T:refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020090420200826
1020797120714 384 4206913 1224 592928T:refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020090420200826
1024975813419 384 4197647 1216 592928T:refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020090420200826
1045251915289 424 4200323 1232 592992T:refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020090420200826
1058996717038 424 4202411 1232 592992T:refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020090420200826
1100143813726 424 4197811 1224 592960T:refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020090420200826

Compiler output

Implementation: T:opt
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
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 (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
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 (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref

Namespace violations

Implementation: T:opt
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
LimaAPI.o Dec_CCA T
LimaAPI.o Dec_CPA T
LimaAPI.o Decap_CCA T
LimaAPI.o Decap_CPA T
LimaAPI.o Enc_CCA T
LimaAPI.o Enc_CPA T
LimaAPI.o Encap_CCA T
LimaAPI.o Encap_CPA T
LimaAPI.o Key_Generation T
fft.o bfft T
fft.o fft T
fft.o fft_inv T
fft.o fft_sub_1 T
fft.o fft_sub_2 T
fft.o inv_mod_q T
fft.o log_2 T
fft.o precompute_fft_data T
fft.o reverse T
lima.o DecodeCT T
lima.o DecodePK T
lima.o DecodeSK T
lima.o Decode_Val T
lima.o EncodeCT T
lima.o EncodePK T
lima.o EncodeSK T
lima.o Encode_Val T
lima.o InitLima T
lima.o RandCheck T
lima.o increment_seed T
lima.o init_done B
lima.o lima_2p_1024 D
lima.o lima_2p_2048 D
lima.o lima_dec_cca T
lima.o lima_dec_cpa T
lima.o lima_decap_cca T
lima.o lima_decap_cpa T
lima.o lima_enc_cca T
lima.o lima_enc_cpa T
lima.o lima_enc_cpa_sub T
lima.o lima_encap_cca T
lima.o lima_encap_cpa T
lima.o lima_fft_2p_1024 C
lima.o lima_fft_2p_2048 C
lima.o lima_fft_sp_1018 C
lima.o lima_fft_sp_1306 C
lima.o lima_fft_sp_1822 C
lima.o lima_fft_sp_2062 C
lima.o lima_key_gen T
lima.o lima_sp_1018 D
lima.o lima_sp_1306 D
lima.o lima_sp_1822 D
lima.o lima_sp_2062 D
lima.o precompute_noise T
lima.o precompute_noise_data T
lima.o xof5_to_modp T
modp.o MontMult T
modp.o add_mod_q T
modp.o assign_one T
modp.o exp_mod_q T
modp.o mod12521473 D
modp.o mod133121 D
modp.o mod16900097 D
modp.o mod184321 D
modp.o mod44802049 D
modp.o mod48181249 D
modp.o mul_add_mod_q T
modp.o mul_mod_q T
modp.o mul_mod_q_tag T
modp.o sub_mod_q T
modp.o to_int T
modp.o to_mod_q T
xof.o InitXOF T
xof.o KDF T
xof.o XOF T
xof.o generate_gaussian_noise T
xof.o get_random_field_element T
xof.o get_random_field_elements T

Number of similar (compiler,implementation) pairs: 9, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opt
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opt
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opt
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opt

Namespace violations

Implementation: T:ref
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
LimaAPI.o Dec_CCA T
LimaAPI.o Dec_CPA T
LimaAPI.o Decap_CCA T
LimaAPI.o Decap_CPA T
LimaAPI.o Enc_CCA T
LimaAPI.o Enc_CPA T
LimaAPI.o Encap_CCA T
LimaAPI.o Encap_CPA T
LimaAPI.o Key_Generation T
fft.o bfft T
fft.o fft T
fft.o fft_inv T
fft.o fft_sub_1 T
fft.o fft_sub_2 T
fft.o inv_mod_q T
fft.o precompute_fft_data T
lima.o DecodeCT T
lima.o DecodePK T
lima.o DecodeSK T
lima.o Decode_Val T
lima.o EncodeCT T
lima.o EncodePK T
lima.o EncodeSK T
lima.o Encode_Val T
lima.o InitLima T
lima.o RandCheck T
lima.o increment_seed T
lima.o init_done B
lima.o lima_2p_1024 D
lima.o lima_2p_2048 D
lima.o lima_dec_cca T
lima.o lima_dec_cpa T
lima.o lima_decap_cca T
lima.o lima_decap_cpa T
lima.o lima_enc_cca T
lima.o lima_enc_cpa T
lima.o lima_enc_cpa_sub T
lima.o lima_encap_cca T
lima.o lima_encap_cpa T
lima.o lima_fft_2p_1024 C
lima.o lima_fft_2p_2048 C
lima.o lima_fft_sp_1018 C
lima.o lima_fft_sp_1306 C
lima.o lima_fft_sp_1822 C
lima.o lima_fft_sp_2062 C
lima.o lima_key_gen T
lima.o lima_sp_1018 D
lima.o lima_sp_1306 D
lima.o lima_sp_1822 D
lima.o lima_sp_2062 D
modp.o add_mod_q T
modp.o exp_mod_q T
modp.o mod12521473 D
modp.o mod133121 D
modp.o mod16900097 D
modp.o mod184321 D
modp.o mod44802049 D
modp.o mod48181249 D
modp.o mul_add_mod_q T
modp.o mul_mod_q T
modp.o sub_mod_q T
modp.o to_int T
modp.o to_mod_q T
xof.o InitXOF T
xof.o KDF T
xof.o XOF T
xof.o generate_gaussian_noise T
xof.o get_random_field_element T
xof.o get_random_field_elements T

Number of similar (compiler,implementation) pairs: 9, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref