Implementation notes: amd64, waldorf, crypto_dh/hecfp128i

Computer: waldorf
Architecture: amd64
CPU ID: GenuineIntel-000106e5-bfebfbff
SUPERCOP version: 20160715
Operation: crypto_dh
Primitive: hecfp128i
TimeImplementationCompilerBenchmark dateSUPERCOP version
1651412v02/w8s16gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
1662248v02/w8s16gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
1708360v02/w8s04gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
1715032v02/w8s32gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
1741292v02/w8s02gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
1773076v02/w8s01gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
1806028v02/w8s01gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
1892916v02/w8s01gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
1922824v02/w8s32gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
1962716v02/w8s32gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
1965764v02/w8s16gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
1974060v02/w8s32gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
1975192v02/w8s08gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
1976372v02/w8s08gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
1978384v02/w8s08gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
1980668v02/w8s04gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
1981264v02/w8s16gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
1985980v02/w8s08gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
1987636v02/w8s04gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
2004424v02/w8s04gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
2035624v02/w8s02gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
2040000v02/w8s02gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
2051604v02/w8s02gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
2123144v02/w8s01gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
2888444v02/vargcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
2935832v02/vargcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
3016960v02/vargcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
3475512v02/vargcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715

Compiler output

Implementation: crypto_dh/hecfp128i/v02/var
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
divisor.c: In file included from divisor.c:12:
divisor.c: ./finite128.h:255:13: warning: inline function 'hec_fp_dbl_2e128mc_g2i_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_dbl_2e128mc_g2i_x8664_asm(uni TMP, uni_t prm, void *NOPARAM, uni D3, uni d1, uni CNS);
divisor.c: ^
divisor.c: divisor.c:34:2: note: used here
divisor.c: hec_fp_dbl_2e128mc_g2i_x8664_asm((uni)t, cn->gt;prm, NULL, (uni)d3, (uni)d1, (uni)cn);
divisor.c: ^
divisor.c: In file included from divisor.c:12:
divisor.c: ./finite128.h:256:13: warning: inline function 'hec_fp_dbl_2e128mc_g2i_a2is0_a3is0_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_dbl_2e128mc_g2i_a2is0_a3is0_x8664_asm(uni TMP, uni_t prm, void *NOPARAM, uni D3, uni d1, uni CNS);
divisor.c: ^
divisor.c: divisor.c:117:2: note: used here
divisor.c: hec_fp_dbl_2e128mc_g2i_a2is0_a3is0_x8664_asm((uni)t, cn->gt;prm, NULL, (uni)d3, (uni)d1, NULL);
divisor.c: ^
divisor.c: In file included from divisor.c:12:
divisor.c: ./finite128.h:257:13: warning: inline function 'hec_fp_add_2e128mc_g2i_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_add_2e128mc_g2i_x8664_asm(uni TMP, uni_t prm, void *NOPARAM, uni D3, uni d1, uni d2);
divisor.c: ^
divisor.c: divisor.c:211:3: note: used here
divisor.c: hec_fp_add_2e128mc_g2i_x8664_asm((uni)t, cn->gt;prm, NULL, (uni)d3, (uni)d1, (uni)d2);
divisor.c: ^
divisor.c: In file included from divisor.c:12:
divisor.c: ./finite128.h:258:13: warning: inline function 'hec_fp_madd_2e128mc_g2i_x8664_asm' is not defined [-Wundefined-inline]
divisor.c: inline void hec_fp_madd_2e128mc_g2i_x8664_asm(uni TMP, uni_t prm, void *NOPARAM, uni D3, uni d1, uni 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:86: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.
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); /*printf("%d ", i);*/
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.
try.c: crypto_dh_hecfp128i.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_hecfp128i.a(smul.o): In function `hec_fp_smul_2e128mc_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: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (compiler,implementation) pairs: 7, namely:
CompilerImplementations
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments v02/var v02/w8s01 v02/w8s02 v02/w8s04 v02/w8s08 v02/w8s16 v02/w8s32