Implementation notes: amd64, pmnod003, crypto_dh/gls1271

Computer: pmnod003
Architecture: amd64
CPU ID: GenuineIntel-00050654-bfebfbff
SUPERCOP version: 20190910
Operation: crypto_dh
Primitive: gls1271
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
515268129530 0 80165328 888 1704ref4icc_-xCOMMON-AVX512_-O2_-fomit-frame-pointer2019091220190910
517614127130 0 80162307 896 1672ref4icc_-xCORE-AVX-I_-O3_-fomit-frame-pointer2019091220190910
517760124330 0 80158147 896 1672ref4icc_-xSSE4.2_-O2_-fomit-frame-pointer2019091220190910
517852129522 0 80164792 888 1704ref4icc_-xCOMMON-AVX512_-O3_-fomit-frame-pointer2019091220190910
519176127226 0 80162864 888 1704ref4icc_-xCORE-AVX512_-O2_-fomit-frame-pointer2019091220190910
524498126346 0 80161491 896 1672ref4icc_-xAVX_-O2_-fomit-frame-pointer2019091220190910

Compiler output

Implementation: crypto_dh/gls1271/ref4
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
gls1271.c: gls1271.c: In function 'crypto_dh_gls1271_ref4_keypair':
gls1271.c: gls1271.c:385:2: warning: implicit declaration of function 'ecn2_brick_init'; did you mean 'ebrick_init'? [-Wimplicit-function-declaration]
gls1271.c: 385 | ecn2_brick_init(&binst,prom,A,B,p,6,128);
gls1271.c: | ^~~~~~~~~~~~~~~
gls1271.c: | ebrick_init
gls1271.c: gls1271.c:391:5: warning: implicit declaration of function 'randombytes' [-Wimplicit-function-declaration]
gls1271.c: 391 | randombytes(sk,32);
gls1271.c: | ^~~~~~~~~~~
mrecn2.c: mrecn2.c: In function 'zzn2_div2_i':
mrecn2.c: mrecn2.c:20:2: warning: implicit declaration of function 'moddiv2' [-Wimplicit-function-declaration]
mrecn2.c: 20 | moddiv2(w->a->w);
mrecn2.c: | ^~~~~~~
mrecn2.c: mrecn2.c: In function 'zzn2_tim2_i':
mrecn2.c: mrecn2.c:32:2: warning: implicit declaration of function 'modtim2' [-Wimplicit-function-declaration]
mrecn2.c: 32 | modtim2(w->a->w);
mrecn2.c: | ^~~~~~~
mrecn2.c: mrecn2.c: In function 'zzn2_tim3_i':
mrecn2.c: mrecn2.c:44:2: warning: implicit declaration of function 'modtim3' [-Wimplicit-function-declaration]
mrecn2.c: 44 | modtim3(w->a->w);
mrecn2.c: | ^~~~~~~
mrecn2.c: mrecn2.c: In function 'zzn2_add_i':
mrecn2.c: mrecn2.c:70:5: warning: implicit declaration of function 'modadd' [-Wimplicit-function-declaration]
mrecn2.c: 70 | modadd(x->a->w,y->a->w,w->a->w);
mrecn2.c: | ^~~~~~
mrecn2.c: mrecn2.c: In function 'zzn2_sub_i':
mrecn2.c: mrecn2.c:81:5: warning: implicit declaration of function 'modsub' [-Wimplicit-function-declaration]
mrecn2.c: 81 | modsub(x->a->w,y->a->w,w->a->w);
mrecn2.c: | ^~~~~~
mrecn2.c: mrecn2.c: In function 'zzn2_timesi_i':
mrecn2.c: mrecn2.c:96:2: warning: implicit declaration of function 'modneg' [-Wimplicit-function-declaration]
mrecn2.c: 96 | modneg(u->a->w);
mrecn2.c: | ^~~~~~
mrecn2.c: mrecn2.c: In function 'zzn2_imul_i':
mrecn2.c: ...

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

Compiler output

Implementation: crypto_dh/gls1271/ref4
Compiler: icc -xAVX -O2 -fomit-frame-pointer
gls1271.c: gls1271.c(385): warning #266: function "ecn2_brick_init" declared implicitly
gls1271.c: ecn2_brick_init(&binst,prom,A,B,p,6,128);
gls1271.c: ^
gls1271.c:
gls1271.c: gls1271.c(391): warning #266: function "randombytes" declared implicitly
gls1271.c: randombytes(sk,32);
gls1271.c: ^
gls1271.c:
mrecn2.c: mrecn2.c(20): warning #266: function "moddiv2" declared implicitly
mrecn2.c: moddiv2(w->a->w);
mrecn2.c: ^
mrecn2.c:
mrecn2.c: mrecn2.c(32): warning #266: function "modtim2" declared implicitly
mrecn2.c: modtim2(w->a->w);
mrecn2.c: ^
mrecn2.c:
mrecn2.c: mrecn2.c(44): warning #266: function "modtim3" declared implicitly
mrecn2.c: modtim3(w->a->w);
mrecn2.c: ^
mrecn2.c:
mrecn2.c: mrecn2.c(70): warning #266: function "modadd" declared implicitly
mrecn2.c: modadd(x->a->w,y->a->w,w->a->w);
mrecn2.c: ^
mrecn2.c:
mrecn2.c: mrecn2.c(81): warning #266: function "modsub" declared implicitly
mrecn2.c: modsub(x->a->w,y->a->w,w->a->w);
mrecn2.c: ^
mrecn2.c:
mrecn2.c: mrecn2.c(96): warning #266: function "modneg" declared implicitly
mrecn2.c: modneg(u->a->w);
mrecn2.c: ^
mrecn2.c:
mrecn2.c: mrecn2.c(137): warning #266: function "modpmul" declared implicitly
mrecn2.c: ...
mrmonty.c: mrmonty.c(752): warning #266: function "modneg" declared implicitly
mrmonty.c: modneg(w->w);
mrmonty.c: ^
mrmonty.c:
mrmonty.c: mrmonty.c(901): warning #266: function "modadd" declared implicitly
mrmonty.c: modadd(x->w,y->w,w->w);
mrmonty.c: ^
mrmonty.c:
mrmonty.c: mrmonty.c(935): warning #266: function "modsub" declared implicitly
mrmonty.c: modsub(x->w,y->w,w->w);
mrmonty.c: ^
mrmonty.c:
mrmonty.c: mrmonty.c(1075): warning #266: function "modsqr" declared implicitly
mrmonty.c: if (x==y) modsqr(x->w,w->w);
mrmonty.c: ^
mrmonty.c:
mrmonty.c: mrmonty.c(1076): warning #266: function "modmult" declared implicitly
mrmonty.c: else modmult(x->w,y->w,w->w);
mrmonty.c: ^
mrmonty.c:
mrzzn2.c: mrzzn2.c(37): warning #266: function "modsub" declared implicitly
mrzzn2.c: modsub(x->a->w,y->a->w,w->a->w);
mrzzn2.c: ^
mrzzn2.c:
mrzzn2.c: mrzzn2.c(59): warning #266: function "modadd" declared implicitly
mrzzn2.c: modadd(x->a->w,y->a->w,w->a->w);
mrzzn2.c: ^
mrzzn2.c:
mrzzn2.c: mrzzn2.c(174): warning #266: function "modneg" declared implicitly
mrzzn2.c: modneg(w->a->w);
mrzzn2.c: ^
mrzzn2.c:
mrzzn2.c: mrzzn2.c(319): warning #266: function "moddiv2" declared implicitly
mrzzn2.c: moddiv2(w->a->w);
mrzzn2.c: ^
mrzzn2.c:
mrzzn2.c: mrzzn2.c(512): warning #266: function "modadd" declared implicitly
mrzzn2.c: modadd(x->a->w,x->b->w,mr_mip->w1->w);
mrzzn2.c: ^
mrzzn2.c:
mrzzn2.c: mrzzn2.c(513): warning #266: function "modsub" declared implicitly
mrzzn2.c: modsub(x->a->w,x->b->w,mr_mip->w2->w);
mrzzn2.c: ^
mrzzn2.c:
mrzzn2.c: mrzzn2.c(514): warning #266: function "modmult" declared implicitly
mrzzn2.c: ...

Number of similar (compiler,implementation) pairs: 6, namely:
CompilerImplementations
icc -xAVX -O2 -fomit-frame-pointer ref4
icc -xCOMMON-AVX512 -O2 -fomit-frame-pointer ref4
icc -xCOMMON-AVX512 -O3 -fomit-frame-pointer ref4
icc -xCORE-AVX-I -O3 -fomit-frame-pointer ref4
icc -xCORE-AVX512 -O2 -fomit-frame-pointer ref4
icc -xSSE4.2 -O2 -fomit-frame-pointer ref4

Compiler output

Implementation: crypto_dh/gls1271/ref4
Compiler: icc -xAVX -O3 -fomit-frame-pointer
gls1271.c: gls1271.c(385): warning #266: function "ecn2_brick_init" declared implicitly
gls1271.c: ecn2_brick_init(&binst,prom,A,B,p,6,128);
gls1271.c: ^
gls1271.c:
gls1271.c: gls1271.c(391): warning #266: function "randombytes" declared implicitly
gls1271.c: randombytes(sk,32);
gls1271.c: ^
gls1271.c:
mrecn2.c: mrecn2.c(20): warning #266: function "moddiv2" declared implicitly
mrecn2.c: moddiv2(w->a->w);
mrecn2.c: ^
mrecn2.c:
mrecn2.c: mrecn2.c(32): warning #266: function "modtim2" declared implicitly
mrecn2.c: modtim2(w->a->w);
mrecn2.c: ^
mrecn2.c:
mrecn2.c: mrecn2.c(44): warning #266: function "modtim3" declared implicitly
mrecn2.c: modtim3(w->a->w);
mrecn2.c: ^
mrecn2.c:
mrecn2.c: mrecn2.c(70): warning #266: function "modadd" declared implicitly
mrecn2.c: modadd(x->a->w,y->a->w,w->a->w);
mrecn2.c: ^
mrecn2.c:
mrecn2.c: mrecn2.c(81): warning #266: function "modsub" declared implicitly
mrecn2.c: modsub(x->a->w,y->a->w,w->a->w);
mrecn2.c: ^
mrecn2.c:
mrecn2.c: mrecn2.c(96): warning #266: function "modneg" declared implicitly
mrecn2.c: modneg(u->a->w);
mrecn2.c: ^
mrecn2.c:
mrecn2.c: mrecn2.c(137): warning #266: function "modpmul" declared implicitly
mrecn2.c: ...

Number of similar (compiler,implementation) pairs: 8, namely:
CompilerImplementations
icc -xAVX -O3 -fomit-frame-pointer ref4
icc -xCORE-AVX-I -O2 -fomit-frame-pointer ref4
icc -xCORE-AVX2 -O2 -fomit-frame-pointer ref4
icc -xCORE-AVX2 -O3 -fomit-frame-pointer ref4
icc -xCORE-AVX512 -O3 -fomit-frame-pointer ref4
icc -xSSE4.1 -O2 -fomit-frame-pointer ref4
icc -xSSE4.1 -O3 -fomit-frame-pointer ref4
icc -xSSE4.2 -O3 -fomit-frame-pointer ref4