Implementation notes: amd64, hertz, crypto_dh/ecfp256s

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240625
Operation: crypto_dh
Primitive: ecfp256s

Compiler output


alloc.c: alloc.c:79:11: warning: passing 'char[13]' to parameter of type 'sic_t *' (aka 'signed char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
alloc.c:    79 |                 kn_exit("kn_init_fast", ERR_OUT_OF_MEMORY);
alloc.c:       |                         ^~~~~~~~~~~~~~
alloc.c: ./_core.h:132:21: note: passing argument to parameter 's' here
alloc.c:   132 | void kn_exit(sic_t *s, uni_t code);
alloc.c:       |                     ^
alloc.c: alloc.c:94:11: warning: passing 'char[13]' to parameter of type 'sic_t *' (aka 'signed char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
alloc.c:    94 |                 kn_exit("kn_free_fast", ERR_INVALID_MEMORY);
alloc.c:       |                         ^~~~~~~~~~~~~~
alloc.c: ./_core.h:132:21: note: passing argument to parameter 's' here
alloc.c:   132 | void kn_exit(sic_t *s, uni_t code);
alloc.c:       |                     ^
alloc.c: alloc.c:110:11: warning: passing 'char[8]' to parameter of type 'sic_t *' (aka 'signed char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
alloc.c:   110 |                 kn_exit("kn_kill", ERR_INVALID_MEMORY);
alloc.c:       |                         ^~~~~~~~~
alloc.c: ./_core.h:132:21: note: passing argument to parameter 's' here
alloc.c:   132 | void kn_exit(sic_t *s, uni_t code);
alloc.c:       |                     ^
alloc.c: alloc.c:133:11: warning: passing 'char[33]' to parameter of type 'sic_t *' (aka 'signed char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
alloc.c:   133 |                 kn_exit("kn_alloc: cannot allocate memory", 0);
alloc.c:       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alloc.c: ./_core.h:132:21: note: passing argument to parameter 's' here
alloc.c:   132 | void kn_exit(sic_t *s, uni_t code);
alloc.c:       |                     ^
alloc.c: alloc.c:154:12: warning: passing 'char[8]' to parameter of type 'sic_t *' (aka 'signed char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
alloc.c: ...

Number of similar (implementation,compiler) pairs: 15, namely:
ImplementationCompiler
T:v01/varclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:v01/varclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:v01/varclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:v01/w8s1clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:v01/w8s1clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:v01/w8s1clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:v01/w8s2clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:v01/w8s2clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:v01/w8s2clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:v01/w8s4clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:v01/w8s4clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:v01/w8s4clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:v01/w8s8clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:v01/w8s8clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:v01/w8s8clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))

Compiler output


alloc.c: alloc.c: In function 'kn_init_fast':
alloc.c: alloc.c:79:25: warning: pointer targets in passing argument 1 of 'kn_exit' differ in signedness [-Wpointer-sign]
alloc.c:    79 |                 kn_exit("kn_init_fast", ERR_OUT_OF_MEMORY);
alloc.c:       |                         ^~~~~~~~~~~~~~
alloc.c:       |                         |
alloc.c:       |                         char *
alloc.c: In file included from alloc.c:27:
alloc.c: _core.h:132:21: note: expected 'sic_t *' {aka 'signed char *'} but argument is of type 'char *'
alloc.c:   132 | void kn_exit(sic_t *s, uni_t code);
alloc.c:       |              ~~~~~~~^
alloc.c: alloc.c: In function 'kn_free_fast':
alloc.c: alloc.c:94:25: warning: pointer targets in passing argument 1 of 'kn_exit' differ in signedness [-Wpointer-sign]
alloc.c:    94 |                 kn_exit("kn_free_fast", ERR_INVALID_MEMORY);
alloc.c:       |                         ^~~~~~~~~~~~~~
alloc.c:       |                         |
alloc.c:       |                         char *
alloc.c: _core.h:132:21: note: expected 'sic_t *' {aka 'signed char *'} but argument is of type 'char *'
alloc.c:   132 | void kn_exit(sic_t *s, uni_t code);
alloc.c:       |              ~~~~~~~^
alloc.c: alloc.c: In function 'kn_kill_fast':
alloc.c: alloc.c:110:25: warning: pointer targets in passing argument 1 of 'kn_exit' differ in signedness [-Wpointer-sign]
alloc.c:   110 |                 kn_exit("kn_kill", ERR_INVALID_MEMORY);
alloc.c:       |                         ^~~~~~~~~
alloc.c:       |                         |
alloc.c:       |                         char *
alloc.c: ...
array_lo.c: In file included from array_lo.c:24:
array_lo.c: kernel.h:82:1: warning: multi-line comment [-Wcomment]
array_lo.c:    82 | //#define km_add_c(cr, z, a, b, c)if(1){ \
array_lo.c:       | ^
array_lo.c: kernel.h:95:1: warning: multi-line comment [-Wcomment]
array_lo.c:    95 | //#define km_add_c(cr, z, a, b, c) __asm__( \
array_lo.c:       | ^
ec_fp_256s.c: In file included from crympix.h:30,
ec_fp_256s.c:                  from ec_fp_256s.c:16:
ec_fp_256s.c: kernel.h:82:1: warning: multi-line comment [-Wcomment]
ec_fp_256s.c:    82 | //#define km_add_c(cr, z, a, b, c)if(1){ \
ec_fp_256s.c:       | ^
ec_fp_256s.c: kernel.h:95:1: warning: multi-line comment [-Wcomment]
ec_fp_256s.c:    95 | //#define km_add_c(cr, z, a, b, c) __asm__( \
ec_fp_256s.c:       | ^
ec_fp_256s.c: In file included from finite256.h:24,
ec_fp_256s.c:                  from ec_fp_256s.c:17:
ec_fp_256s.c: fp_256x8664.h:17:20: warning: 'fp_mld_256' defined but not used [-Wunused-function]
ec_fp_256s.c:    17 | static INLINE void fp_mld_256(uni zn, uni_t a, uni bn){
ec_fp_256s.c:       |                    ^~~~~~~~~~
error.c: error.c: In function 'kn_memcheck':
error.c: error.c:44:25: warning: pointer targets in passing argument 1 of 'kn_exit' differ in signedness [-Wpointer-sign]
error.c:    44 |                 kn_exit("Increase the workspace space using crypmix_init(maxlen)", ERR_OUT_OF_BOUNDS);
error.c:       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error.c:       |                         |
error.c:       |                         char *
error.c: error.c:29:21: note: expected 'sic_t *' {aka 'signed char *'} but argument is of type 'char *'
error.c:    29 | void kn_exit(sic_t *s, uni_t code)
error.c:       |              ~~~~~~~^
fp_256x8664.c: In file included from crympix.h:30,
fp_256x8664.c:                  from fp_256x8664.c:2:
fp_256x8664.c: kernel.h:82:1: warning: multi-line comment [-Wcomment]
fp_256x8664.c:    82 | //#define km_add_c(cr, z, a, b, c)if(1){ \
fp_256x8664.c:       | ^
fp_256x8664.c: kernel.h:95:1: warning: multi-line comment [-Wcomment]
fp_256x8664.c:    95 | //#define km_add_c(cr, z, a, b, c) __asm__( \
fp_256x8664.c:       | ^
fp_256x8664.c: In file included from finite256.h:24,
fp_256x8664.c:                  from fp_256x8664.c:4:
fp_256x8664.c: fp_256x8664.h:670:20: warning: 'fp_sqr_256' defined but not used [-Wunused-function]
fp_256x8664.c:   670 | static INLINE void fp_sqr_256(uni zn, uni an){
fp_256x8664.c:       |                    ^~~~~~~~~~
fp_256x8664.c: fp_256x8664.h:437:20: warning: 'fp_mul_256' defined but not used [-Wunused-function]
fp_256x8664.c:   437 | static INLINE void fp_mul_256(uni zn, uni an, uni bn){
fp_256x8664.c:       |                    ^~~~~~~~~~
fp_256x8664.c: fp_256x8664.h:393:20: warning: 'fp_sub_256' defined but not used [-Wunused-function]
fp_256x8664.c:   393 | static INLINE void fp_sub_256(uni zn, uni an, uni bn){
fp_256x8664.c:       |                    ^~~~~~~~~~
fp_256x8664.c: fp_256x8664.h:347:20: warning: 'fp_add_256' defined but not used [-Wunused-function]
fp_256x8664.c:   347 | static INLINE void fp_add_256(uni zn, uni an, uni bn){
fp_256x8664.c:       |                    ^~~~~~~~~~
fp_256x8664.c: fp_256x8664.h:302:20: warning: 'fp_sub_2_256' defined but not used [-Wunused-function]
fp_256x8664.c:   302 | static INLINE void fp_sub_2_256(uni zn, uni_t a, uni bn){
fp_256x8664.c:       |                    ^~~~~~~~~~~~
fp_256x8664.c: ...

Number of similar (implementation,compiler) pairs: 7, namely:
ImplementationCompiler
T:v01/vargcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:v01/w8s1gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:v01/w8s1gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:v01/w8s2gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:v01/w8s2gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:v01/w8s4gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:v01/w8s8gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)

Compiler output


alloc.c: alloc.c: In function 'kn_init_fast':
alloc.c: alloc.c:79:25: warning: pointer targets in passing argument 1 of 'kn_exit' differ in signedness [-Wpointer-sign]
alloc.c:    79 |                 kn_exit("kn_init_fast", ERR_OUT_OF_MEMORY);
alloc.c:       |                         ^~~~~~~~~~~~~~
alloc.c:       |                         |
alloc.c:       |                         char *
alloc.c: In file included from alloc.c:27:
alloc.c: _core.h:132:21: note: expected 'sic_t *' {aka 'signed char *'} but argument is of type 'char *'
alloc.c:   132 | void kn_exit(sic_t *s, uni_t code);
alloc.c:       |              ~~~~~~~^
alloc.c: alloc.c: In function 'kn_free_fast':
alloc.c: alloc.c:94:25: warning: pointer targets in passing argument 1 of 'kn_exit' differ in signedness [-Wpointer-sign]
alloc.c:    94 |                 kn_exit("kn_free_fast", ERR_INVALID_MEMORY);
alloc.c:       |                         ^~~~~~~~~~~~~~
alloc.c:       |                         |
alloc.c:       |                         char *
alloc.c: _core.h:132:21: note: expected 'sic_t *' {aka 'signed char *'} but argument is of type 'char *'
alloc.c:   132 | void kn_exit(sic_t *s, uni_t code);
alloc.c:       |              ~~~~~~~^
alloc.c: alloc.c: In function 'kn_kill_fast':
alloc.c: alloc.c:110:25: warning: pointer targets in passing argument 1 of 'kn_exit' differ in signedness [-Wpointer-sign]
alloc.c:   110 |                 kn_exit("kn_kill", ERR_INVALID_MEMORY);
alloc.c:       |                         ^~~~~~~~~
alloc.c:       |                         |
alloc.c:       |                         char *
alloc.c: ...
array_lo.c: In file included from array_lo.c:24:
array_lo.c: kernel.h:82:1: warning: multi-line comment [-Wcomment]
array_lo.c:    82 | //#define km_add_c(cr, z, a, b, c)if(1){ \
array_lo.c:       | ^
array_lo.c: kernel.h:95:1: warning: multi-line comment [-Wcomment]
array_lo.c:    95 | //#define km_add_c(cr, z, a, b, c) __asm__( \
array_lo.c:       | ^
ec_fp_256s.c: In file included from crympix.h:30,
ec_fp_256s.c:                  from ec_fp_256s.c:16:
ec_fp_256s.c: kernel.h:82:1: warning: multi-line comment [-Wcomment]
ec_fp_256s.c:    82 | //#define km_add_c(cr, z, a, b, c)if(1){ \
ec_fp_256s.c:       | ^
ec_fp_256s.c: kernel.h:95:1: warning: multi-line comment [-Wcomment]
ec_fp_256s.c:    95 | //#define km_add_c(cr, z, a, b, c) __asm__( \
ec_fp_256s.c:       | ^
ec_fp_256s.c: In file included from finite256.h:24,
ec_fp_256s.c:                  from ec_fp_256s.c:17:
ec_fp_256s.c: fp_256x8664.h:17:20: warning: 'fp_mld_256' defined but not used [-Wunused-function]
ec_fp_256s.c:    17 | static INLINE void fp_mld_256(uni zn, uni_t a, uni bn){
ec_fp_256s.c:       |                    ^~~~~~~~~~
error.c: error.c: In function 'kn_memcheck':
error.c: error.c:44:25: warning: pointer targets in passing argument 1 of 'kn_exit' differ in signedness [-Wpointer-sign]
error.c:    44 |                 kn_exit("Increase the workspace space using crypmix_init(maxlen)", ERR_OUT_OF_BOUNDS);
error.c:       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error.c:       |                         |
error.c:       |                         char *
error.c: error.c:29:21: note: expected 'sic_t *' {aka 'signed char *'} but argument is of type 'char *'
error.c:    29 | void kn_exit(sic_t *s, uni_t code)
error.c:       |              ~~~~~~~^
fp_256x8664.c: In file included from crympix.h:30,
fp_256x8664.c:                  from fp_256x8664.c:2:
fp_256x8664.c: kernel.h:82:1: warning: multi-line comment [-Wcomment]
fp_256x8664.c:    82 | //#define km_add_c(cr, z, a, b, c)if(1){ \
fp_256x8664.c:       | ^
fp_256x8664.c: kernel.h:95:1: warning: multi-line comment [-Wcomment]
fp_256x8664.c:    95 | //#define km_add_c(cr, z, a, b, c) __asm__( \
fp_256x8664.c:       | ^
fp_256x8664.c: In file included from finite256.h:24,
fp_256x8664.c:                  from fp_256x8664.c:4:
fp_256x8664.c: fp_256x8664.h:670:20: warning: 'fp_sqr_256' defined but not used [-Wunused-function]
fp_256x8664.c:   670 | static INLINE void fp_sqr_256(uni zn, uni an){
fp_256x8664.c:       |                    ^~~~~~~~~~
fp_256x8664.c: fp_256x8664.h:437:20: warning: 'fp_mul_256' defined but not used [-Wunused-function]
fp_256x8664.c:   437 | static INLINE void fp_mul_256(uni zn, uni an, uni bn){
fp_256x8664.c:       |                    ^~~~~~~~~~
fp_256x8664.c: fp_256x8664.h:393:20: warning: 'fp_sub_256' defined but not used [-Wunused-function]
fp_256x8664.c:   393 | static INLINE void fp_sub_256(uni zn, uni an, uni bn){
fp_256x8664.c:       |                    ^~~~~~~~~~
fp_256x8664.c: fp_256x8664.h:347:20: warning: 'fp_add_256' defined but not used [-Wunused-function]
fp_256x8664.c:   347 | static INLINE void fp_add_256(uni zn, uni an, uni bn){
fp_256x8664.c:       |                    ^~~~~~~~~~
fp_256x8664.c: fp_256x8664.h:302:20: warning: 'fp_sub_2_256' defined but not used [-Wunused-function]
fp_256x8664.c:   302 | static INLINE void fp_sub_2_256(uni zn, uni_t a, uni bn){
fp_256x8664.c:       |                    ^~~~~~~~~~~~
fp_256x8664.c: ...
integer_hi_stack.c: In file included from integer_hi_stack.c:24:
integer_hi_stack.c: kernel.h:82:1: warning: multi-line comment [-Wcomment]
integer_hi_stack.c:    82 | //#define km_add_c(cr, z, a, b, c)if(1){ \
integer_hi_stack.c:       | ^
integer_hi_stack.c: kernel.h:95:1: warning: multi-line comment [-Wcomment]
integer_hi_stack.c:    95 | //#define km_add_c(cr, z, a, b, c) __asm__( \
integer_hi_stack.c:       | ^
integer_hi_stack.c: integer_hi_stack.c: In function 'min_gcdx_lehmer_stack':
integer_hi_stack.c: integer_hi_stack.c:68:30: warning: unused variable 'vaL' [-Wunused-variable]
integer_hi_stack.c:    68 |         uni_t uaH, uaL, vaH, vaL;
integer_hi_stack.c:       |                              ^~~
integer_hi_stack.c: integer_hi_stack.c:68:20: warning: unused variable 'uaL' [-Wunused-variable]
integer_hi_stack.c:    68 |         uni_t uaH, uaL, vaH, vaL;
integer_hi_stack.c:       |                    ^~~
integer_hi_stack.c: integer_hi_stack.c:65:60: warning: unused variable 'tq1' [-Wunused-variable]
integer_hi_stack.c:    65 |         uni_t tAH, tAL, tBH, tBL, tCH, tCL, tDH, tDL, tq0, tq1;
integer_hi_stack.c:       |                                                            ^~~
integer_hi_stack.c: integer_hi_stack.c:65:55: warning: unused variable 'tq0' [-Wunused-variable]
integer_hi_stack.c:    65 |         uni_t tAH, tAL, tBH, tBL, tCH, tCL, tDH, tDL, tq0, tq1;
integer_hi_stack.c:       |                                                       ^~~
integer_hi_stack.c: integer_hi_stack.c:65:50: warning: unused variable 'tDL' [-Wunused-variable]
integer_hi_stack.c:    65 |         uni_t tAH, tAL, tBH, tBL, tCH, tCL, tDH, tDL, tq0, tq1;
integer_hi_stack.c:       |                                                  ^~~
integer_hi_stack.c: integer_hi_stack.c:65:45: warning: unused variable 'tDH' [-Wunused-variable]
integer_hi_stack.c:    65 |         uni_t tAH, tAL, tBH, tBL, tCH, tCL, tDH, tDL, tq0, tq1;
integer_hi_stack.c: ...

Number of similar (implementation,compiler) pairs: 8, namely:
ImplementationCompiler
T:v01/vargcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:v01/vargcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:v01/w8s1gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:v01/w8s2gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:v01/w8s4gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:v01/w8s4gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:v01/w8s8gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:v01/w8s8gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)