Implementation notes: amd64, waldorf, crypto_dh/jacfp128bk

Computer: waldorf
Architecture: amd64
CPU ID: GenuineIntel-000106e5-bfebfbff
SUPERCOP version: 20160715
Operation: crypto_dh
Primitive: jacfp128bk
TimeImplementationCompilerBenchmark dateSUPERCOP version
705144v01/w8s08glv4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
707696v01/w8s32glv4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
714132v01/w8s32glv4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
720992v01/w8s16glv4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
722316v01/w8s04glv4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
723240v01/w8s08glv4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
723456v01/w8s16glv4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
725076v01/w8s16glv4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
729280v01/w8s08glv4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
732664v01/w8s32glv4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
734968v01/w8s04glv4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
735252v01/w8s08glv4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
738376v01/w8s04glv4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
740908v01/w8s04glv4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
754380v01/w8s32glv4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
756756v01/w8s02glv4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
760236v01/w8s02glv4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
770728v01/w8s02glv4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
799464v01/w8s16glv4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
808000v01/w8s01glv4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
816908v01/w4s16glv4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
817260v01/w8s01glv4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
819376v01/w8s01glv4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
821404v01/w4s32glv4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
832188v01/w4s16glv4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
833452v01/w4s32glv4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
833992v01/w4s32glv4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
834260v01/w4s32glv4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
838324v01/w4s08glv4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
840284v01/w4s16glv4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
843544v01/w4s08glv4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
843828v01/w4s08glv4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
855256v01/w4s04glv4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
855860v01/w4s08glv4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
860500v01/w8s02glv4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
883372v01/w4s04glv4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
890088v01/w4s04glv4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
923560v01/w4s02glv4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
926720v01/w4s02glv4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
930412v01/w4s02glv4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
933048v01/w4s02glv4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
936200v01/w8s01glv4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
953588v01/w4s16glv4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
1006744v01/w4s04glv4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
1026516v01/w4s01glv4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
1065948v01/w4s01glv4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
1086720v01/varglv4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
1088072v01/varglv4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
1094192v01/varglv4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
1112528v01/varglv4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
1192556v01/w4s01glv4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
1204988v01/w4s01glv4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715

Compiler output

Implementation: crypto_dh/jacfp128bk/v01/w4s01glv4
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
divisor.c: In file included from divisor.c:13:
divisor.c: ./finite128.h:386:13: warning: inline function 'hec_fp_zadd_2e128mc_g2i_jac_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_zadd_2e128mc_g2i_jac_x8664_asm(TEMP_hec_fp_2e128mc t, DIV_hec_fp_2e128mc D2);
divisor.c: ^
divisor.c: divisor.c:55:3: note: used here
divisor.c: hec_fp_zadd_2e128mc_g2i_jac_x8664_asm(t, D2);
divisor.c: ^
divisor.c: In file included from divisor.c:13:
divisor.c: ./finite128.h:385:13: warning: inline function 'hec_fp_aadd_2e128mc_g2i_jac_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_aadd_2e128mc_g2i_jac_x8664_asm(TEMP_hec_fp_2e128mc t, DIV_hec_fp_2e128mc D2);
divisor.c: ^
divisor.c: divisor.c:126:3: note: used here
divisor.c: hec_fp_aadd_2e128mc_g2i_jac_x8664_asm(t, D2);
divisor.c: ^
divisor.c: In file included from divisor.c:13:
divisor.c: ./finite128.h:387:13: warning: inline function 'hec_fp_madd_2e128mc_g2i_jac_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_madd_2e128mc_g2i_jac_x8664_asm(TEMP_hec_fp_2e128mc t, DIV_hec_fp_2e128mc D2);
divisor.c: ^
divisor.c: divisor.c:193:3: note: used here
divisor.c: hec_fp_madd_2e128mc_g2i_jac_x8664_asm(t, D2);
divisor.c: ^
divisor.c: In file included from divisor.c:13:
divisor.c: ./finite128.h:388:13: warning: inline function 'hec_fp_mdbladd_2e128mc_g2i_jac_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_mdbladd_2e128mc_g2i_jac_x8664_asm(TEMP_hec_fp_2e128mc t, DIV_hec_fp_2e128mc D2);
divisor.c: ^
divisor.c: ...
fp_2e128mc_x8664.c: In file included from fp_2e128mc_x8664.c:7:
fp_2e128mc_x8664.c: In file included from ./finite128.h:5:
fp_2e128mc_x8664.c: ./fpx.h:23:13: warning: inline function 'fp_cnt_bits' is not defined [-Wundefined-inline]
fp_2e128mc_x8664.c: inline void fp_cnt_bits(int *bc, const uni an, const uni_t al);
fp_2e128mc_x8664.c: ^
fp_2e128mc_x8664.c: fp_2e128mc_x8664.c:88:2: note: used here
fp_2e128mc_x8664.c: fp_cnt_bits(&i, n01, 1);
fp_2e128mc_x8664.c: ^
fp_2e128mc_x8664.c: 1 warning generated.
io.c: io.c:352:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
io.c: if((buf[i] == -1)){
io.c: ~~~~~~~^~~~~
io.c: io.c:352:14: note: remove extraneous parentheses around the comparison to silence this warning
io.c: if((buf[i] == -1)){
io.c: ~ ^ ~
io.c: io.c:352:14: note: use '=' to turn this equality comparison into an assignment
io.c: if((buf[i] == -1)){
io.c: ^~
io.c: =
io.c: io.c:379:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
io.c: if((buf[i] == -1)){
io.c: ~~~~~~~^~~~~
io.c: io.c:379:14: note: remove extraneous parentheses around the comparison to silence this warning
io.c: if((buf[i] == -1)){
io.c: ~ ^ ~
io.c: io.c:379:14: note: use '=' to turn this equality comparison into an assignment
io.c: if((buf[i] == -1)){
io.c: ^~
io.c: =
io.c: 2 warnings generated.
smul_a2a3is0.c: In file included from smul_a2a3is0.c:13:
smul_a2a3is0.c: In file included from ./finite128.h:5:
smul_a2a3is0.c: ./fpx.h:23:13: warning: inline function 'fp_cnt_bits' is not defined [-Wundefined-inline]
smul_a2a3is0.c: inline void fp_cnt_bits(int *bc, const uni an, const uni_t al);
smul_a2a3is0.c: ^
smul_a2a3is0.c: smul_a2a3is0.c:29:2: note: used here
smul_a2a3is0.c: fp_cnt_bits(&i, kn, FP_LEN*2); /*printf("%d ", i);*/
smul_a2a3is0.c: ^
smul_a2a3is0.c: In file included from smul_a2a3is0.c:13:
smul_a2a3is0.c: In file included from ./finite128.h:5:
smul_a2a3is0.c: ./fpx.h:24:13: warning: inline function 'find_nextwindow' is not defined [-Wundefined-inline]
smul_a2a3is0.c: inline void find_nextwindow(int *v, int *k, uni_t kl, int *wd, const uni en, const int i, uni_t WINDOW_SIZE_LTR, uni_t TABLE_SIZE_LTR);
smul_a2a3is0.c: ^
smul_a2a3is0.c: smul_a2a3is0.c:93:3: note: used here
smul_a2a3is0.c: find_nextwindow(&ni, &k, 2*FP_LEN, &wd, kn, i, WINDOW_SIZE_LTR, TABLE_SIZE_LTR);
smul_a2a3is0.c: ^
smul_a2a3is0.c: 2 warnings generated.
smul_glv4.c: In file included from smul_glv4.c:11:
smul_glv4.c: In file included from ./finite128.h:5:
smul_glv4.c: ./fpx.h:23:13: warning: inline function 'fp_cnt_bits' is not defined [-Wundefined-inline]
smul_glv4.c: inline void fp_cnt_bits(int *bc, const uni an, const uni_t al);
smul_glv4.c: ^
smul_glv4.c: smul_glv4.c:249:2: note: used here
smul_glv4.c: fp_cnt_bits(&bt, k0->gt;v->gt;n, k0->gt;v->gt;l);
smul_glv4.c: ^
smul_glv4.c: 1 warning generated.
try.c: crypto_dh_jacfp128bk.a(fp_2e128mc_x8664.o): In function `fp_inv_2e128mc_x8664':
try.c: fp_2e128mc_x8664.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: crypto_dh_jacfp128bk.a(smul_a2a3is0.o): In function `hec_fp_smul_2e128mc_g2i_jac_a2a3is0':
try.c: smul_a2a3is0.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: smul_a2a3is0.c:(.text+0x...): undefined reference to `find_nextwindow'
try.c: smul_a2a3is0.c:(.text+0x...): undefined reference to `find_nextwindow'
try.c: crypto_dh_jacfp128bk.a(smul_glv4.o): In function `hec_fp_smul_2e128mc_bk_jac_glv4':
try.c: smul_glv4.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: smul_glv4.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: smul_glv4.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: smul_glv4.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (compiler,implementation) pairs: 12, namely:
CompilerImplementations
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments v01/w4s01glv4 v01/w4s02glv4 v01/w4s04glv4 v01/w4s08glv4 v01/w4s16glv4 v01/w4s32glv4 v01/w8s01glv4 v01/w8s02glv4 v01/w8s04glv4 v01/w8s08glv4 v01/w8s16glv4 v01/w8s32glv4

Compiler output

Implementation: crypto_dh/jacfp128bk/v01/varglv4
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
divisor.c: In file included from divisor.c:13:
divisor.c: ./finite128.h:386:13: warning: inline function 'hec_fp_zadd_2e128mc_g2i_jac_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_zadd_2e128mc_g2i_jac_x8664_asm(TEMP_hec_fp_2e128mc t, DIV_hec_fp_2e128mc D2);
divisor.c: ^
divisor.c: divisor.c:55:3: note: used here
divisor.c: hec_fp_zadd_2e128mc_g2i_jac_x8664_asm(t, D2);
divisor.c: ^
divisor.c: In file included from divisor.c:13:
divisor.c: ./finite128.h:385:13: warning: inline function 'hec_fp_aadd_2e128mc_g2i_jac_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_aadd_2e128mc_g2i_jac_x8664_asm(TEMP_hec_fp_2e128mc t, DIV_hec_fp_2e128mc D2);
divisor.c: ^
divisor.c: divisor.c:126:3: note: used here
divisor.c: hec_fp_aadd_2e128mc_g2i_jac_x8664_asm(t, D2);
divisor.c: ^
divisor.c: In file included from divisor.c:13:
divisor.c: ./finite128.h:387:13: warning: inline function 'hec_fp_madd_2e128mc_g2i_jac_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_madd_2e128mc_g2i_jac_x8664_asm(TEMP_hec_fp_2e128mc t, DIV_hec_fp_2e128mc D2);
divisor.c: ^
divisor.c: divisor.c:193:3: note: used here
divisor.c: hec_fp_madd_2e128mc_g2i_jac_x8664_asm(t, D2);
divisor.c: ^
divisor.c: In file included from divisor.c:13:
divisor.c: ./finite128.h:388:13: warning: inline function 'hec_fp_mdbladd_2e128mc_g2i_jac_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_mdbladd_2e128mc_g2i_jac_x8664_asm(TEMP_hec_fp_2e128mc t, DIV_hec_fp_2e128mc D2);
divisor.c: ^
divisor.c: ...
fp_2e128mc_x8664.c: In file included from fp_2e128mc_x8664.c:7:
fp_2e128mc_x8664.c: In file included from ./finite128.h:5:
fp_2e128mc_x8664.c: ./fpx.h:23:13: warning: inline function 'fp_cnt_bits' is not defined [-Wundefined-inline]
fp_2e128mc_x8664.c: inline void fp_cnt_bits(int *bc, const uni an, const uni_t al);
fp_2e128mc_x8664.c: ^
fp_2e128mc_x8664.c: fp_2e128mc_x8664.c:88:2: note: used here
fp_2e128mc_x8664.c: fp_cnt_bits(&i, n01, 1);
fp_2e128mc_x8664.c: ^
fp_2e128mc_x8664.c: 1 warning generated.
io.c: io.c:352:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
io.c: if((buf[i] == -1)){
io.c: ~~~~~~~^~~~~
io.c: io.c:352:14: note: remove extraneous parentheses around the comparison to silence this warning
io.c: if((buf[i] == -1)){
io.c: ~ ^ ~
io.c: io.c:352:14: note: use '=' to turn this equality comparison into an assignment
io.c: if((buf[i] == -1)){
io.c: ^~
io.c: =
io.c: io.c:379:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
io.c: if((buf[i] == -1)){
io.c: ~~~~~~~^~~~~
io.c: io.c:379:14: note: remove extraneous parentheses around the comparison to silence this warning
io.c: if((buf[i] == -1)){
io.c: ~ ^ ~
io.c: io.c:379:14: note: use '=' to turn this equality comparison into an assignment
io.c: if((buf[i] == -1)){
io.c: ^~
io.c: =
io.c: 2 warnings generated.
smul_glv4.c: In file included from smul_glv4.c:11:
smul_glv4.c: In file included from ./finite128.h:5:
smul_glv4.c: ./fpx.h:23:13: warning: inline function 'fp_cnt_bits' is not defined [-Wundefined-inline]
smul_glv4.c: inline void fp_cnt_bits(int *bc, const uni an, const uni_t al);
smul_glv4.c: ^
smul_glv4.c: smul_glv4.c:249:2: note: used here
smul_glv4.c: fp_cnt_bits(&bt, k0->gt;v->gt;n, k0->gt;v->gt;l);
smul_glv4.c: ^
smul_glv4.c: 1 warning generated.
try.c: crypto_dh_jacfp128bk.a(fp_2e128mc_x8664.o): In function `fp_inv_2e128mc_x8664':
try.c: fp_2e128mc_x8664.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: crypto_dh_jacfp128bk.a(smul_glv4.o): In function `hec_fp_smul_2e128mc_bk_jac_glv4':
try.c: smul_glv4.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: smul_glv4.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: smul_glv4.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: smul_glv4.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments v01/varglv4