Implementation notes: amd64, sliver, crypto_dh/kumfp128g

Computer: sliver
Architecture: amd64
CPU ID: GenuineIntel-00040651-bfebfbff
SUPERCOP version: 20160731
Operation: crypto_dh
Primitive: kumfp128g
TimeImplementationCompilerBenchmark dateSUPERCOP version
1020588v02/vargcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072520160718
1738260v02/vargcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072520160718
1898562v02/vargcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072520160718
1907688v02/vargcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072520160718

Compiler output

Implementation: crypto_dh/kumfp128g/v02/var
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
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:12:
smul.c: ./finite128.h:269:13: warning: inline function 'kum_fp_dbl_2e128mc_g_x8664_asm' is not defined [-Wundefined-inline]
smul.c: inline void kum_fp_dbl_2e128mc_g_x8664_asm(uni TMP, void *NOPARAM1, void *NOPARAM2, uni d1, void *NOPARAM3, uni CNS);
smul.c: ^
smul.c: smul.c:29:2: note: used here
smul.c: kum_fp_dbl_2e128mc_g_x8664_asm((uni)t, NULL, NULL, (uni)d1, NULL, (uni)cn);
smul.c: ^
smul.c: In file included from smul.c:12:
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:30:2: note: used here
smul.c: fp_cnt_bits(&i, kn, 2*FP_LEN); /*printf("%d ", i);*/
smul.c: ^
smul.c: In file included from smul.c:12:
smul.c: ./finite128.h:270:13: warning: inline function 'kum_fp_dbladd_2e128mc_g_x8664_asm' is not defined [-Wundefined-inline]
smul.c: inline void kum_fp_dbladd_2e128mc_g_x8664_asm(uni TMP, uni kn, uni_t i, uni d1, uni d2, uni CNS);
smul.c: ^
smul.c: smul.c:32:3: note: used here
smul.c: kum_fp_dbladd_2e128mc_g_x8664_asm((uni)t, kn, j, (uni)d1, (uni)d2, (uni)cn);
smul.c: ^
smul.c: 3 warnings generated.
try.c: /tmp/try-anything-cbb184.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.c: crypto_dh_kumfp128g.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_kumfp128g.a(smul.o): In function `kum_fp_smul_2e128mc_g':
try.c: smul.c:(.text+0x...): undefined reference to `fp_cnt_bits'
try.c: clang-3.5: 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 v02/var

Compiler output

Implementation: crypto_dh/kumfp128g/v02/var
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
try.c: /tmp//ccjtHi1Q.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.c: /tmp//ccdWQDPY.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
measure.c: crypto_dh_kumfp128g.a(test.o): In function `crypto_dh_kumfp128g_v02_var_keypair':
measure.c: test.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv v02/var

Compiler output

Implementation: crypto_dh/kumfp128g/v02/var
Compiler: gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv
try.c: /tmp//cc4IQGcL.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.c: /tmp//ccSWANTS.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
measure.c: crypto_dh_kumfp128g.a(test.o): In function `crypto_dh_kumfp128g_v02_var_keypair':
measure.c: test.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv v02/var

Compiler output

Implementation: crypto_dh/kumfp128g/v02/var
Compiler: gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv
try.c: /tmp//ccNP5LNT.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.c: /tmp//cczpCaP7.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
measure.c: crypto_dh_kumfp128g.a(test.o): In function `crypto_dh_kumfp128g_v02_var_keypair':
measure.c: test.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv v02/var

Compiler output

Implementation: crypto_dh/kumfp128g/v02/var
Compiler: gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv
try.c: /tmp//ccri2AjM.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.c: /tmp//cc4aA9v3.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
measure.c: crypto_dh_kumfp128g.a(test.o): In function `crypto_dh_kumfp128g_v02_var_keypair':
measure.c: test.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv v02/var