Implementation notes: amd64, pmnod076, crypto_dh/hector

Computer: pmnod076
Architecture: amd64
CPU ID: GenuineIntel-00050657-bfebfbff
SUPERCOP version: 20191017
Operation: crypto_dh
Primitive: hector
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
2073712155784 0 0324506 1336 2384refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019102320191017
2091490154456 0 0320506 1336 2384refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019102320191017
2171506169716 0 0335442 1336 2384refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019102320191017

Compiler output

Implementation: crypto_dh/hector/ref
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
common.c: In file included from common.h:12,
common.c: from common.c:7:
common.c: divclass.h:47:13: warning: inline function 'divclass_neg' declared but never defined
common.c: 47 | inline void divclass_neg(divclass rop, const divclass op);
common.c: | ^~~~~~~~~~~~
config.c: In file included from config.h:11,
config.c: from config.c:10:
config.c: divclass.h:47:13: warning: inline function 'divclass_neg' declared but never defined
config.c: 47 | inline void divclass_neg(divclass rop, const divclass op);
config.c: | ^~~~~~~~~~~~
conversion.c: In file included from conversion.c:9:
conversion.c: divclass.h:47:13: warning: inline function 'divclass_neg' declared but never defined
conversion.c: 47 | inline void divclass_neg(divclass rop, const divclass op);
conversion.c: | ^~~~~~~~~~~~
curve.c: In file included from config.h:11,
curve.c: from curve.c:7:
curve.c: divclass.h:47:13: warning: inline function 'divclass_neg' declared but never defined
curve.c: 47 | inline void divclass_neg(divclass rop, const divclass op);
curve.c: | ^~~~~~~~~~~~
divclass.c: In file included from ./mpfq_2_113.h:5,
divclass.c: from ./field.h:7,
divclass.c: from divclass.h:10,
divclass.c: from divclass.c:7:
divclass.c: ./x86_64/mpfq_2_113.h:17:18: warning: 'mpfq_2_113_set' is static but used in inline function 'divclass_negaff' which is not static
divclass.c: 17 | #define MPFQ_(X) mpfq_2_113_ ## X
divclass.c: | ^~~~~~~~~~~
divclass.c: ./mpfq_name_K.h:33:21: note: in expansion of macro 'MPFQ_'
divclass.c: 33 | #define Kset(a0,a1) MPFQ_(set) (K,a0,a1)
divclass.c: | ^~~~~
divclass.c: divclass.c:410:2: note: in expansion of macro 'Kset'
divclass.c: 410 | Kset(rop->m_V0,op->m_V0);
divclass.c: | ^~~~
divclass.c: ./x86_64/mpfq_2_113.h:17:18: warning: 'mpfq_2_113_set' is static but used in inline function 'divclass_negaff' which is not static
divclass.c: 17 | #define MPFQ_(X) mpfq_2_113_ ## X
divclass.c: | ^~~~~~~~~~~
divclass.c: ./mpfq_name_K.h:33:21: note: in expansion of macro 'MPFQ_'
divclass.c: 33 | #define Kset(a0,a1) MPFQ_(set) (K,a0,a1)
divclass.c: | ^~~~~
divclass.c: divclass.c:409:2: note: in expansion of macro 'Kset'
divclass.c: 409 | Kset(rop->m_V1,op->m_V1);
divclass.c: | ^~~~
divclass.c: ./x86_64/mpfq_2_113.h:17:18: warning: 'mpfq_2_113_set' is static but used in inline function 'divclass_negaff' which is not static
divclass.c: 17 | #define MPFQ_(X) mpfq_2_113_ ## X
divclass.c: | ^~~~~~~~~~~
divclass.c: ...
generator.c: In file included from config.h:11,
generator.c: from generator.c:10:
generator.c: divclass.h:47:13: warning: inline function 'divclass_neg' declared but never defined
generator.c: 47 | inline void divclass_neg(divclass rop, const divclass op);
generator.c: | ^~~~~~~~~~~~
hector_dh.c: In file included from config.h:11,
hector_dh.c: from hector_dh.c:12:
hector_dh.c: divclass.h:47:13: warning: inline function 'divclass_neg' declared but never defined
hector_dh.c: 47 | inline void divclass_neg(divclass rop, const divclass op);
hector_dh.c: | ^~~~~~~~~~~~
wnaf.c: In file included from config.h:11,
wnaf.c: from wnaf.c:10:
wnaf.c: divclass.h:47:13: warning: inline function 'divclass_neg' declared but never defined
wnaf.c: 47 | inline void divclass_neg(divclass rop, const divclass op);
wnaf.c: | ^~~~~~~~~~~~

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

Compiler output

Implementation: crypto_dh/hector/ref
Compiler: gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE
common.c: In file included from common.h:12,
common.c: from common.c:7:
common.c: divclass.h:47:13: warning: inline function 'divclass_neg' declared but never defined
common.c: 47 | inline void divclass_neg(divclass rop, const divclass op);
common.c: | ^~~~~~~~~~~~
config.c: In file included from config.h:11,
config.c: from config.c:10:
config.c: divclass.h:47:13: warning: inline function 'divclass_neg' declared but never defined
config.c: 47 | inline void divclass_neg(divclass rop, const divclass op);
config.c: | ^~~~~~~~~~~~
conversion.c: In file included from conversion.c:9:
conversion.c: divclass.h:47:13: warning: inline function 'divclass_neg' declared but never defined
conversion.c: 47 | inline void divclass_neg(divclass rop, const divclass op);
conversion.c: | ^~~~~~~~~~~~
curve.c: In file included from config.h:11,
curve.c: from curve.c:7:
curve.c: divclass.h:47:13: warning: inline function 'divclass_neg' declared but never defined
curve.c: 47 | inline void divclass_neg(divclass rop, const divclass op);
curve.c: | ^~~~~~~~~~~~
divclass.c: In file included from ./mpfq_2_113.h:5,
divclass.c: from ./field.h:7,
divclass.c: from divclass.h:10,
divclass.c: from divclass.c:7:
divclass.c: ./x86_64/mpfq_2_113.h:17:18: warning: 'mpfq_2_113_set' is static but used in inline function 'divclass_negaff' which is not static
divclass.c: 17 | #define MPFQ_(X) mpfq_2_113_ ## X
divclass.c: | ^~~~~~~~~~~
divclass.c: ./mpfq_name_K.h:33:21: note: in expansion of macro 'MPFQ_'
divclass.c: 33 | #define Kset(a0,a1) MPFQ_(set) (K,a0,a1)
divclass.c: | ^~~~~
divclass.c: divclass.c:410:2: note: in expansion of macro 'Kset'
divclass.c: 410 | Kset(rop->m_V0,op->m_V0);
divclass.c: | ^~~~
divclass.c: ./x86_64/mpfq_2_113.h:17:18: warning: 'mpfq_2_113_set' is static but used in inline function 'divclass_negaff' which is not static
divclass.c: 17 | #define MPFQ_(X) mpfq_2_113_ ## X
divclass.c: | ^~~~~~~~~~~
divclass.c: ./mpfq_name_K.h:33:21: note: in expansion of macro 'MPFQ_'
divclass.c: 33 | #define Kset(a0,a1) MPFQ_(set) (K,a0,a1)
divclass.c: | ^~~~~
divclass.c: divclass.c:409:2: note: in expansion of macro 'Kset'
divclass.c: 409 | Kset(rop->m_V1,op->m_V1);
divclass.c: | ^~~~
divclass.c: ./x86_64/mpfq_2_113.h:17:18: warning: 'mpfq_2_113_set' is static but used in inline function 'divclass_negaff' which is not static
divclass.c: 17 | #define MPFQ_(X) mpfq_2_113_ ## X
divclass.c: | ^~~~~~~~~~~
divclass.c: ...
generator.c: In file included from config.h:11,
generator.c: from generator.c:10:
generator.c: divclass.h:47:13: warning: inline function 'divclass_neg' declared but never defined
generator.c: 47 | inline void divclass_neg(divclass rop, const divclass op);
generator.c: | ^~~~~~~~~~~~
hector_dh.c: In file included from config.h:11,
hector_dh.c: from hector_dh.c:12:
hector_dh.c: divclass.h:47:13: warning: inline function 'divclass_neg' declared but never defined
hector_dh.c: 47 | inline void divclass_neg(divclass rop, const divclass op);
hector_dh.c: | ^~~~~~~~~~~~
wnaf.c: In file included from config.h:11,
wnaf.c: from wnaf.c:10:
wnaf.c: divclass.h:47:13: warning: inline function 'divclass_neg' declared but never defined
wnaf.c: 47 | inline void divclass_neg(divclass rop, const divclass op);
wnaf.c: | ^~~~~~~~~~~~
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: crypto_dh_hector.a(divclass.o): in function `divclass_multiply':
try.c: divclass.c:(.text+0x...): undefined reference to `divclass_negaff'
try.c: collect2: error: ld returned 1 exit status

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

Compiler output

Implementation: crypto_dh/hector/ref
Compiler: icc -march=broadwell -mtune=broadwell -O2 -fomit-frame-pointer
divclass.c: divclass.c(447): warning #266: function "malloc" declared implicitly
divclass.c: multiples = malloc(sizeof(divclass) * number_of_multiples);
divclass.c: ^
divclass.c:
divclass.c: divclass.c(483): warning #266: function "free" declared implicitly
divclass.c: free(multiples);
divclass.c: ^
divclass.c:
divclass.c: divclass.c(410): warning #1173: an entity with internal linkage cannot be referenced within an inline function with external linkage
divclass.c: Kset(rop->m_V0,op->m_V0);
divclass.c: ^
divclass.c:
divclass.c: divclass.c(409): warning #1173: an entity with internal linkage cannot be referenced within an inline function with external linkage
divclass.c: Kset(rop->m_V1,op->m_V1);
divclass.c: ^
divclass.c:
divclass.c: divclass.c(408): warning #1173: an entity with internal linkage cannot be referenced within an inline function with external linkage
divclass.c: Kset(rop->m_U0,op->m_U0);
divclass.c: ^
divclass.c:
divclass.c: divclass.c(407): warning #1173: an entity with internal linkage cannot be referenced within an inline function with external linkage
divclass.c: Kset(rop->m_U1,op->m_U1);
divclass.c: ^
divclass.c:
generator.c: In file included from generator.c(20):
generator.c: x86_64/generator.c(12): warning #266: function "malloc" declared implicitly
generator.c: generator_multiples1 = malloc(sizeof(divclass) * number_of_generator_multiples1);
generator.c: ^
generator.c:
generator.c: generator.c(61): warning #266: function "free" declared implicitly
generator.c: free(generator_multiples2);
generator.c: ^
generator.c:
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: crypto_dh_hector.a(divclass.o): in function `mpfq_2_113_mul_ur':
try.c: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psllqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psllqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psllqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psllqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psrlqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psllqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psrlqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psllqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psrlqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psllqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psrlqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psllqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psrlqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psllqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psrlqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psllqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psrlqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psllqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psrlqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psllqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psrlqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psllqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psrlqi128'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: divclass.c:(.text+0x...): undefined reference to `__builtin_ia32_psllqi128'
try.c: ...

Number of similar (compiler,implementation) pairs: 24, namely:
CompilerImplementations
icc -march=broadwell -mtune=broadwell -O2 -fomit-frame-pointer ref
icc -march=broadwell -mtune=broadwell -O3 -fomit-frame-pointer ref
icc -march=cannonlake -mtune=cannonlake -O2 -fomit-frame-pointer ref
icc -march=cannonlake -mtune=cannonlake -O3 -fomit-frame-pointer ref
icc -march=core-avx-i -mtune=core-avx-i -O2 -fomit-frame-pointer ref
icc -march=core-avx-i -mtune=core-avx-i -O3 -fomit-frame-pointer ref
icc -march=core-avx2 -mtune=core-avx2 -O2 -fomit-frame-pointer ref
icc -march=core-avx2 -mtune=core-avx2 -O3 -fomit-frame-pointer ref
icc -march=corei7-avx -mtune=corei7-avx -O2 -fomit-frame-pointer ref
icc -march=corei7-avx -mtune=corei7-avx -O3 -fomit-frame-pointer ref
icc -march=corei7 -mtune=corei7 -O2 -fomit-frame-pointer ref
icc -march=corei7 -mtune=corei7 -O3 -fomit-frame-pointer ref
icc -march=haswell -mtune=haswell -O2 -fomit-frame-pointer ref
icc -march=haswell -mtune=haswell -O3 -fomit-frame-pointer ref
icc -march=icelake-client -mtune=icelake-client -O2 -fomit-frame-pointer ref
icc -march=icelake-client -mtune=icelake-client -O3 -fomit-frame-pointer ref
icc -march=ivybridge -mtune=ivybridge -O2 -fomit-frame-pointer ref
icc -march=ivybridge -mtune=ivybridge -O3 -fomit-frame-pointer ref
icc -march=sandybridge -mtune=sandybridge -O2 -fomit-frame-pointer ref
icc -march=sandybridge -mtune=sandybridge -O3 -fomit-frame-pointer ref
icc -march=skylake-avx512 -mtune=skylake-avx512 -O2 -fomit-frame-pointer ref
icc -march=skylake-avx512 -mtune=skylake-avx512 -O3 -fomit-frame-pointer ref
icc -march=skylake -mtune=skylake -O2 -fomit-frame-pointer ref
icc -march=skylake -mtune=skylake -O3 -fomit-frame-pointer ref