Implementation notes: amd64, hydra8, crypto_dh/hecfp61e2bk

Computer: hydra8
Architecture: amd64
CPU ID: GenuineIntel-000306a9-bfebfbff
SUPERCOP version: 20200522
Operation: crypto_dh
Primitive: hecfp61e2bk

Compiler output

Implementation: crypto_dh/hecfp61e2bk/v01/varglv8
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
divisor.c: In file included from divisor.c:12:
divisor.c: ./finite128.h:489:13: warning: inline function 'hec_fp_dbl_2e061m1e2_g2i_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_dbl_2e061m1e2_g2i_x8664_asm(uni TMP, void *NOPARAM1, void *NOPARAM2, uni D3, uni d1, uni CNS);
divisor.c: ^
divisor.c: divisor.c:34:2: note: used here
divisor.c: hec_fp_dbl_2e061m1e2_g2i_x8664_asm((uni)t, NULL, NULL, (uni)d3, (uni)d1, (uni)cn);
divisor.c: ^
divisor.c: In file included from divisor.c:12:
divisor.c: ./finite128.h:490:13: warning: inline function 'hec_fp_dbl_2e061m1e2_g2i_a2is0_a3is0_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_dbl_2e061m1e2_g2i_a2is0_a3is0_x8664_asm(uni TMP, void *NOPARAM1, void *NOPARAM2, uni D3, uni d1, uni CNS);
divisor.c: ^
divisor.c: divisor.c:117:2: note: used here
divisor.c: hec_fp_dbl_2e061m1e2_g2i_a2is0_a3is0_x8664_asm((uni)t, NULL, NULL, (uni)d3, (uni)d1, NULL);
divisor.c: ^
divisor.c: In file included from divisor.c:12:
divisor.c: ./finite128.h:491:13: warning: inline function 'hec_fp_add_2e061m1e2_g2i_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_add_2e061m1e2_g2i_x8664_asm(uni TMP, void *NOPARAM1, void *NOPARAM2, uni D3, uni d1, uni d2);
divisor.c: ^
divisor.c: divisor.c:211:3: note: used here
divisor.c: hec_fp_add_2e061m1e2_g2i_x8664_asm((uni)t, NULL, NULL, (uni)d3, (uni)d1, (uni)d2);
divisor.c: ^
divisor.c: In file included from divisor.c:12:
divisor.c: ./finite128.h:492:13: warning: inline function 'hec_fp_madd_2e061m1e2_g2i_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_madd_2e061m1e2_g2i_x8664_asm(uni TMP, void *NOPARAM1, void *NOPARAM2, uni D3, uni d1, uni d2);
divisor.c: ^
divisor.c: ...

Number of similar (compiler,implementation) pairs: 34, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE v01/varglv8 v01/w8s01glv8 v01/w8s02glv8 v01/w8s04glv8 v01/w8s08glv8 v01/w8s16glv8 v01/w8s32glv8
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE v01/varglv8 v01/w8s01glv8 v01/w8s02glv8 v01/w8s04glv8 v01/w8s08glv8 v01/w8s16glv8 v01/w8s32glv8
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE v01/varglv8 v01/w8s01glv8 v01/w8s02glv8 v01/w8s04glv8 v01/w8s08glv8 v01/w8s16glv8 v01/w8s32glv8
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE v01/varglv8 v01/w8s01glv8 v01/w8s04glv8 v01/w8s08glv8 v01/w8s16glv8 v01/w8s32glv8
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE v01/varglv8 v01/w8s01glv8 v01/w8s02glv8 v01/w8s04glv8 v01/w8s08glv8 v01/w8s16glv8 v01/w8s32glv8

Compiler output

Implementation: crypto_dh/hecfp61e2bk/v01/w8s02glv8
Compiler: clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
divisor.c: In file included from divisor.c:12:
divisor.c: ./finite128.h:489:13: warning: inline function 'hec_fp_dbl_2e061m1e2_g2i_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_dbl_2e061m1e2_g2i_x8664_asm(uni TMP, void *NOPARAM1, void *NOPARAM2, uni D3, uni d1, uni CNS);
divisor.c: ^
divisor.c: divisor.c:34:2: note: used here
divisor.c: hec_fp_dbl_2e061m1e2_g2i_x8664_asm((uni)t, NULL, NULL, (uni)d3, (uni)d1, (uni)cn);
divisor.c: ^
divisor.c: In file included from divisor.c:12:
divisor.c: ./finite128.h:490:13: warning: inline function 'hec_fp_dbl_2e061m1e2_g2i_a2is0_a3is0_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_dbl_2e061m1e2_g2i_a2is0_a3is0_x8664_asm(uni TMP, void *NOPARAM1, void *NOPARAM2, uni D3, uni d1, uni CNS);
divisor.c: ^
divisor.c: divisor.c:117:2: note: used here
divisor.c: hec_fp_dbl_2e061m1e2_g2i_a2is0_a3is0_x8664_asm((uni)t, NULL, NULL, (uni)d3, (uni)d1, NULL);
divisor.c: ^
divisor.c: In file included from divisor.c:12:
divisor.c: ./finite128.h:491:13: warning: inline function 'hec_fp_add_2e061m1e2_g2i_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_add_2e061m1e2_g2i_x8664_asm(uni TMP, void *NOPARAM1, void *NOPARAM2, uni D3, uni d1, uni d2);
divisor.c: ^
divisor.c: divisor.c:211:3: note: used here
divisor.c: hec_fp_add_2e061m1e2_g2i_x8664_asm((uni)t, NULL, NULL, (uni)d3, (uni)d1, (uni)d2);
divisor.c: ^
divisor.c: In file included from divisor.c:12:
divisor.c: ./finite128.h:492:13: warning: inline function 'hec_fp_madd_2e061m1e2_g2i_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_madd_2e061m1e2_g2i_x8664_asm(uni TMP, void *NOPARAM1, void *NOPARAM2, uni D3, uni d1, uni d2);
divisor.c: ^
divisor.c: ...
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.c: In file included from smul.c:10:
smul.c: In file included from ./finite128.h:5:
smul.c: ./fpx.h:23:13: warning: inline function 'fp_cnt_bits' is not defined [-Wundefined-inline]
smul.c: inline void fp_cnt_bits(int *bc, const uni an, const uni_t al);
smul.c: ^
smul.c: smul.c:22:2: note: used here
smul.c: fp_cnt_bits(&i, kn, FP_LEN*2);
smul.c: ^
smul.c: In file included from smul.c:10:
smul.c: In file included from ./finite128.h:5:
smul.c: ./fpx.h:24:13: warning: inline function 'find_nextwindow' is not defined [-Wundefined-inline]
smul.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.c: ^
smul.c: smul.c:52:3: note: used here
smul.c: find_nextwindow(&ni, &k, 2*FP_LEN, &wd, kn, i, WINDOW_SIZE_LTR, TABLE_SIZE_LTR);
smul.c: ^
smul.c: 2 warnings generated.
smul_glv8.c: In file included from smul_glv8.c:11:
smul_glv8.c: In file included from ./finite128.h:5:
smul_glv8.c: ./fpx.h:23:13: warning: inline function 'fp_cnt_bits' is not defined [-Wundefined-inline]
smul_glv8.c: inline void fp_cnt_bits(int *bc, const uni an, const uni_t al);
smul_glv8.c: ^
smul_glv8.c: smul_glv8.c:621:2: note: used here
smul_glv8.c: fp_cnt_bits(&bt, k0->v->n, k0->v->l);
smul_glv8.c: ^
smul_glv8.c: 1 warning generated.
try.c: crypto_dh_hecfp61e2bk.a(smul.o): In function `hec_fp_smul_2e061m1e2_g2i':
try.c: smul.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: smul.c:(.text+0x...): undefined reference to `find_nextwindow'
try.c: smul.c:(.text+0x...): undefined reference to `find_nextwindow'
try.c: crypto_dh_hecfp61e2bk.a(smul.o): In function `hec_fp_smul_2e061m1e2_g2i_a2is0_a3is0':
try.c: smul.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: smul.c:(.text+0x...): undefined reference to `find_nextwindow'
try.c: smul.c:(.text+0x...): undefined reference to `find_nextwindow'
try.c: crypto_dh_hecfp61e2bk.a(smul_glv8.o): In function `hec_fp_smul_2e061m1e2_glv8_edirne_s2':
try.c: smul_glv8.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: smul_glv8.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: smul_glv8.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: smul_glv8.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: smul_glv8.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: crypto_dh_hecfp61e2bk.a(smul_glv8.o):smul_glv8.c:(.text+0x...): more undefined references to `fp_cnt_bits' follow
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 -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE v01/w8s02glv8

Compiler output

Implementation: crypto_dh/hecfp61e2bk/v01/varglv8
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
divisor.c: In file included from divisor.c:12:0:
divisor.c: finite128.h:763:13: warning: inline function 'kum_fp_dbladd_2e064mce2_g_x8664_asm' declared but never defined
divisor.c: inline void kum_fp_dbladd_2e064mce2_g_x8664_asm(uni TMP, uni kn, uni_t i, uni d1, uni d2, uni CNS);
divisor.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
divisor.c: finite128.h:762:13: warning: inline function 'kum_fp_dbl_2e064mce2_g_x8664_asm' declared but never defined
divisor.c: inline void kum_fp_dbl_2e064mce2_g_x8664_asm(uni TMP, void *NOPARAM1, void *NOPARAM2, uni d1, void *NOPARAM3, uni CNS);
divisor.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
divisor.c: finite128.h:741:13: warning: inline function 'hec_fp_aadd_2e064mce2_g2i_x8664_asm' declared but never defined
divisor.c: inline void hec_fp_aadd_2e064mce2_g2i_x8664_asm(uni TMP, uni_t prm, void *NOPARAM, uni D3, uni d1, uni d2);
divisor.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
divisor.c: finite128.h:740:13: warning: inline function 'hec_fp_madd_2e064mce2_g2i_x8664_asm' declared but never defined
divisor.c: inline void hec_fp_madd_2e064mce2_g2i_x8664_asm(uni TMP, uni_t prm, void *NOPARAM, uni D3, uni d1, uni d2);
divisor.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
divisor.c: finite128.h:739:13: warning: inline function 'hec_fp_add_2e064mce2_g2i_x8664_asm' declared but never defined
divisor.c: inline void hec_fp_add_2e064mce2_g2i_x8664_asm(uni TMP, uni_t prm, void *NOPARAM, uni D3, uni d1, uni d2);
divisor.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
divisor.c: finite128.h:738:13: warning: inline function 'hec_fp_dbl_2e064mce2_g2i_a2is0_a3is0_x8664_asm' declared but never defined
divisor.c: inline void hec_fp_dbl_2e064mce2_g2i_a2is0_a3is0_x8664_asm(uni TMP, uni_t prm, void *NOPARAM, uni D3, uni d1, uni CNS);
divisor.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
divisor.c: finite128.h:737:13: warning: inline function 'hec_fp_dbl_2e064mce2_g2i_x8664_asm' declared but never defined
divisor.c: inline void hec_fp_dbl_2e064mce2_g2i_x8664_asm(uni TMP, uni_t prm, void *NOPARAM, uni D3, uni d1, uni CNS);
divisor.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
divisor.c: finite128.h:512:13: warning: inline function 'kum_fp_dbladd_2e061m1e2_g_x8664_asm' declared but never defined
divisor.c: inline void kum_fp_dbladd_2e061m1e2_g_x8664_asm(uni TMP, uni kn, uni_t i, uni d1, uni d2, uni CNS);
divisor.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
divisor.c: ...

Number of similar (compiler,implementation) pairs: 28, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE v01/varglv8 v01/w8s01glv8 v01/w8s02glv8 v01/w8s04glv8 v01/w8s08glv8 v01/w8s16glv8 v01/w8s32glv8
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE v01/varglv8 v01/w8s01glv8 v01/w8s02glv8 v01/w8s04glv8 v01/w8s08glv8 v01/w8s16glv8 v01/w8s32glv8
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE v01/varglv8 v01/w8s01glv8 v01/w8s02glv8 v01/w8s04glv8 v01/w8s08glv8 v01/w8s16glv8 v01/w8s32glv8
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE v01/varglv8 v01/w8s01glv8 v01/w8s02glv8 v01/w8s04glv8 v01/w8s08glv8 v01/w8s16glv8 v01/w8s32glv8