Implementation notes: amd64, hertz, crypto_dh/ecfp256e
Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240808
Operation: crypto_dh
Primitive: ecfp256e
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:
Implementation | Compiler |
T:v01/var | clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:v01/var | clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:v01/var | clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:v01/w8s1 | clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:v01/w8s1 | clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:v01/w8s1 | clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:v01/w8s2 | clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:v01/w8s2 | clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:v01/w8s2 | clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:v01/w8s4 | clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:v01/w8s4 | clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:v01/w8s4 | clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:v01/w8s8 | clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:v01/w8s8 | clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:v01/w8s8 | clang -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_256e.c: In file included from crympix.h:30,
ec_fp_256e.c: from ec_fp_256e.c:15:
ec_fp_256e.c: kernel.h:82:1: warning: multi-line comment [-Wcomment]
ec_fp_256e.c: 82 | //#define km_add_c(cr, z, a, b, c)if(1){ \
ec_fp_256e.c: | ^
ec_fp_256e.c: kernel.h:95:1: warning: multi-line comment [-Wcomment]
ec_fp_256e.c: 95 | //#define km_add_c(cr, z, a, b, c) __asm__( \
ec_fp_256e.c: | ^
ec_fp_256e.c: ec_fp_256e.c:100:13: warning: 'ec_fp_madd_256Ex' defined but not used [-Wunused-function]
ec_fp_256e.c: 100 | static void ec_fp_madd_256Ex(uni X3, uni Y3, uni Z3, const uni X1, const uni Y1, const uni T1, const uni Z1, const uni X2, const uni Y2, const uni T2){
ec_fp_256e.c: | ^~~~~~~~~~~~~~~~
ec_fp_256e.c: ec_fp_256e.c:81:13: warning: 'ec_fp_dbl_256Ee' defined but not used [-Wunused-function]
ec_fp_256e.c: 81 | static void ec_fp_dbl_256Ee(uni X3, uni Y3, uni T3, uni Z3, const uni X1, const uni Y1, const uni Z1){
ec_fp_256e.c: | ^~~~~~~~~~~~~~~
ec_fp_256e.c: In file included from finite256.h:24,
ec_fp_256e.c: from ec_fp_256e.c:16:
ec_fp_256e.c: fp_256x8664.h:257:20: warning: 'fp_sub_1_256' defined but not used [-Wunused-function]
ec_fp_256e.c: 257 | static INLINE void fp_sub_1_256(uni zn, uni an, uni_t b){
ec_fp_256e.c: | ^~~~~~~~~~~~
ec_fp_256e.c: fp_256x8664.h:211:20: warning: 'fp_add_1_256' defined but not used [-Wunused-function]
ec_fp_256e.c: 211 | static INLINE void fp_add_1_256(uni zn, uni an, uni_t b){
ec_fp_256e.c: | ^~~~~~~~~~~~
ec_fp_256e.c: fp_256x8664.h:142:20: warning: 'fp_dv2_256' defined but not used [-Wunused-function]
ec_fp_256e.c: 142 | static INLINE void fp_dv2_256(uni zn, uni an){
ec_fp_256e.c: | ^~~~~~~~~~
ec_fp_256e.c: ...
Number of similar (implementation,compiler) pairs: 3, namely:
Implementation | Compiler |
T:v01/var | gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:v01/var | gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:v01/var | gcc -march=native -mtune=native -Os -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_256e.c: In file included from crympix.h:30,
ec_fp_256e.c: from ec_fp_256e.c:15:
ec_fp_256e.c: kernel.h:82:1: warning: multi-line comment [-Wcomment]
ec_fp_256e.c: 82 | //#define km_add_c(cr, z, a, b, c)if(1){ \
ec_fp_256e.c: | ^
ec_fp_256e.c: kernel.h:95:1: warning: multi-line comment [-Wcomment]
ec_fp_256e.c: 95 | //#define km_add_c(cr, z, a, b, c) __asm__( \
ec_fp_256e.c: | ^
ec_fp_256e.c: ec_fp_256e.c:100:13: warning: 'ec_fp_madd_256Ex' defined but not used [-Wunused-function]
ec_fp_256e.c: 100 | static void ec_fp_madd_256Ex(uni X3, uni Y3, uni Z3, const uni X1, const uni Y1, const uni T1, const uni Z1, const uni X2, const uni Y2, const uni T2){
ec_fp_256e.c: | ^~~~~~~~~~~~~~~~
ec_fp_256e.c: In file included from finite256.h:24,
ec_fp_256e.c: from ec_fp_256e.c:16:
ec_fp_256e.c: fp_256x8664.h:257:20: warning: 'fp_sub_1_256' defined but not used [-Wunused-function]
ec_fp_256e.c: 257 | static INLINE void fp_sub_1_256(uni zn, uni an, uni_t b){
ec_fp_256e.c: | ^~~~~~~~~~~~
ec_fp_256e.c: fp_256x8664.h:211:20: warning: 'fp_add_1_256' defined but not used [-Wunused-function]
ec_fp_256e.c: 211 | static INLINE void fp_add_1_256(uni zn, uni an, uni_t b){
ec_fp_256e.c: | ^~~~~~~~~~~~
ec_fp_256e.c: fp_256x8664.h:142:20: warning: 'fp_dv2_256' defined but not used [-Wunused-function]
ec_fp_256e.c: 142 | static INLINE void fp_dv2_256(uni zn, uni an){
ec_fp_256e.c: | ^~~~~~~~~~
ec_fp_256e.c: fp_256x8664.h:17:20: warning: 'fp_mld_256' defined but not used [-Wunused-function]
ec_fp_256e.c: 17 | static INLINE void fp_mld_256(uni zn, uni_t a, uni bn){
ec_fp_256e.c: | ^~~~~~~~~~
ec_fp_256e.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: 12, namely:
Implementation | Compiler |
T:v01/w8s1 | gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:v01/w8s1 | gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:v01/w8s1 | gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:v01/w8s2 | gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:v01/w8s2 | gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:v01/w8s2 | gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:v01/w8s4 | gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:v01/w8s4 | gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:v01/w8s4 | gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:v01/w8s8 | gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:v01/w8s8 | gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:v01/w8s8 | gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |