Implementation notes: amd64, gcc123, crypto_dh/gls1271

Computer: gcc123
Architecture: amd64
CPU ID: GenuineIntel-000206d7-bfebfbff
SUPERCOP version: 20220213
Operation: crypto_dh
Primitive: gls1271
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
71057566933 0 8087914 820 1808T:ref4clang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021020820210125
71057976978 0 8097279 836 1840T:ref4gcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021020820210125
71508967491 0 8088850 820 1808T:ref4clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021020820210125
71580067491 0 8088850 820 1808T:ref4clang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021020820210125
71643859403 0 8078255 836 1840T:ref4gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021020820210125
71828168766 0 8091802 820 1808T:ref4clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021020820210125
72050753326 0 8071056 812 1808T:ref4clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021020820210125
74710857208 0 8075583 836 1840T:ref4gcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021020820210125
82847442691 0 8060127 828 1840T:ref4gcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021020820210125

Compiler output

Implementation: T:ref4
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
gls1271.c: gls1271.c:386:2: warning: implicit declaration of function 'ecn2_brick_init' is invalid in C99 [-Wimplicit-function-declaration]
gls1271.c: ecn2_brick_init(&binst,prom,A,B,p,6,128);
gls1271.c: ^
gls1271.c: 1 warning generated.

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

Compiler output

Implementation: T:ref4
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
gls1271.c: gls1271.c: In function 'crypto_dh_gls1271_ref4_timingleaks_keypair':
gls1271.c: gls1271.c:386:2: warning: implicit declaration of function 'ecn2_brick_init'; did you mean 'ebrick_init'? [-Wimplicit-function-declaration]
gls1271.c: ecn2_brick_init(&binst,prom,A,B,p,6,128);
gls1271.c: ^~~~~~~~~~~~~~~
gls1271.c: ebrick_init

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref4
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref4
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref4
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref4

Namespace violations

Implementation: T:ref4
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
fp1271.o modadd T
fp1271.o moddblsub T
fp1271.o moddiv2 T
fp1271.o modmult T
fp1271.o modneg T
fp1271.o modpmul T
fp1271.o modsqr T
fp1271.o modsub T
fp1271.o modtim2 T
fp1271.o modtim3 T
fp1271.o modtim4 T
gls1271.o copyrightclaims T
gls1271.o patentclaims T
gls1271.o timingattacks T
mrarth0.o add T
mrarth0.o decr T
mrarth0.o incr T
mrarth0.o mr_padd T
mrarth0.o mr_psub T
mrarth0.o subtract T
mrarth1.o big_to_bytes T
mrarth1.o bytes_to_big T
mrarth1.o hamming T
mrarth1.o mr_jsf T
mrarth1.o mr_pmul T
mrarth1.o mr_sdiv T
mrarth1.o premult T
mrarth1.o remain T
mrarth1.o subdiv T
mrarth1.o subdivisible T
mrarth2.o divide T
mrarth2.o divisible T
mrarth2.o mad T
mrarth2.o multiply T
mrarth2.o normalise T
mrbits.o expb2 T
mrbits.o logb2 T
mrbits.o sftbit T
mrcore.o absol T
mrcore.o convert T
mrcore.o copy T
mrcore.o ecp_memkill T
mrcore.o epoint_init_mem T
mrcore.o epoint_init_mem_variable T
mrcore.o exsign T
mrcore.o igcd T
mrcore.o init_big_from_rom T
mrcore.o init_point_from_rom T
mrcore.o insign T
mrcore.o isqrt T
mrcore.o lgcd T
mrcore.o lsqrt T
mrcore.o memkill T
mrcore.o mirexit T
mrcore.o mirsys T
mrcore.o mirsys_basic T
mrcore.o mirvar_mem T
mrcore.o mirvar_mem_variable T
mrcore.o mr_addbit T
mrcore.o mr_and T
mrcore.o mr_berror T
mrcore.o mr_compare T
mrcore.o mr_lent T
mrcore.o mr_lzero T
mrcore.o mr_naf_window T
mrcore.o mr_notint T
mrcore.o mr_setbase T
mrcore.o mr_shift T
mrcore.o mr_shiftbits T
mrcore.o mr_testbit T
mrcore.o mr_window T
mrcore.o mr_window2 T
mrcore.o negify T
mrcore.o point_at_infinity T
mrcore.o recode T
mrcore.o set_user_function T
mrcore.o sgcd T
mrcore.o size T
mrcore.o uconvert T
mrcore.o zero T
mrecn2.o ecn2_add T
mrecn2.o ecn2_brick_init T
mrecn2.o ecn2_compare T
mrecn2.o ecn2_copy T
mrecn2.o ecn2_get T
mrecn2.o ecn2_getx T
mrecn2.o ecn2_getxy T
mrecn2.o ecn2_getz T
mrecn2.o ecn2_iszero T
mrecn2.o ecn2_mul T
mrecn2.o ecn2_mul2 T
mrecn2.o ecn2_mul2_gls T
mrecn2.o ecn2_mul2_jsf T
mrecn2.o ecn2_mul4_gls_v T
mrecn2.o ecn2_mul_brick_gls T
mrecn2.o ecn2_muln_engine T
mrecn2.o ecn2_multi_norm T
mrecn2.o ecn2_negate T
mrecn2.o ecn2_norm T
mrecn2.o ecn2_precomp T
mrecn2.o ecn2_precomp_gls T
mrecn2.o ecn2_psi T
mrecn2.o ecn2_rhs T
mrecn2.o ecn2_set T
mrecn2.o ecn2_setx T
mrecn2.o ecn2_setxyz T
mrecn2.o ecn2_sub T
mrecn2.o ecn2_zero T
mrecn2.o nres_sqroot T
mrecn2.o zzn2_inv_i T
mrecn2.o zzn2_lzero T
mrecn2.o zzn2_multi_inverse T
mrecn2.o zzn2_sqrt T
mrmonty.o ecurve_init T
mrmonty.o kill_monty T
mrmonty.o nres T
mrmonty.o nres_div2 T
mrmonty.o nres_div3 T
mrmonty.o nres_div5 T
mrmonty.o nres_double_inverse T
mrmonty.o nres_modadd T
mrmonty.o nres_moddiv T
mrmonty.o nres_modmult T
mrmonty.o nres_modsub T
mrmonty.o nres_multi_inverse T
mrmonty.o nres_negate T
mrmonty.o nres_premult T
mrmonty.o prepare_monty T
mrmonty.o redc T
mrmuldv.o muldiv T
mrmuldv.o muldvd T
mrmuldv.o muldvd2 T
mrmuldv.o muldvm T
mrxgcd.o invmodp T
mrxgcd.o xgcd T
mrzzn2.o zzn2_add T
mrzzn2.o zzn2_compare T
mrzzn2.o zzn2_conj T
mrzzn2.o zzn2_copy T
mrzzn2.o zzn2_div2 T
mrzzn2.o zzn2_div3 T
mrzzn2.o zzn2_div5 T
mrzzn2.o zzn2_from_big T
mrzzn2.o zzn2_from_bigs T
mrzzn2.o zzn2_from_int T
mrzzn2.o zzn2_from_ints T
mrzzn2.o zzn2_from_zzn T
mrzzn2.o zzn2_from_zzns T
mrzzn2.o zzn2_imul T
mrzzn2.o zzn2_inv T
mrzzn2.o zzn2_isunity T
mrzzn2.o zzn2_iszero T
mrzzn2.o zzn2_mul T
mrzzn2.o zzn2_negate T
mrzzn2.o zzn2_sadd T
mrzzn2.o zzn2_smul T
mrzzn2.o zzn2_sqr T
mrzzn2.o zzn2_ssub T
mrzzn2.o zzn2_sub T
mrzzn2.o zzn2_timesi T
mrzzn2.o zzn2_txd T
mrzzn2.o zzn2_txx T
mrzzn2.o zzn2_zero T

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