Implementation notes: aarch64, pi3aplus, crypto_dh/nistp256

Computer: pi3aplus
Microarchitecture: aarch64; Cortex-A53 (410fd034)
Architecture: aarch64
CPU ID: 410fd034
SUPERCOP version: 20240716
Operation: crypto_dh
Primitive: nistp256
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
4201526148 0 028056 31544 1552T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716
424199072 0 030589 31496 1568T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716
4259766176 0 029008 31560 1568T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716
4269524160 0 030904 31560 1584T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716
4295272160 0 029640 31560 1568T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716
476113221712 32864 040325 33640 1568T:wblclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716
500816512584 32864 031680 33712 1584T:wblgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716
612443710588 32864 028400 33704 1568T:wblgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716
71971349956 32864 026224 33688 1552T:wblgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716
792858110848 32864 028024 33704 1568T:wblgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716

Compiler output


curve.c: curve.c:256:7: warning: unused variable 'k' [-Wunused-variable]
curve.c:   int k;
curve.c:       ^
curve.c: 1 warning generated.
fep256.c: fep256.c:1076:14: warning: unused variable 'temp' [-Wunused-variable]
fep256.c:   smallfelem temp;
fep256.c:              ^
fep256.c: fep256.c:46:30: warning: unused variable 'nistp256_curve_params' [-Wunused-const-variable]
fep256.c: static const felem_bytearray nistp256_curve_params[5] = {
fep256.c:                              ^
fep256.c: fep256.c:98:19: warning: unused variable 'bottom32bits' [-Wunused-const-variable]
fep256.c: static const limb bottom32bits = 0xffffffff;
fep256.c:                   ^
fep256.c: fep256.c:133:13: warning: unused function 'smallfelem_assign' [-Wunused-function]
fep256.c: static void smallfelem_assign(smallfelem out, const smallfelem in)
fep256.c:             ^
fep256.c: fep256.c:159:13: warning: unused function 'felem_small_sum' [-Wunused-function]
fep256.c: static void felem_small_sum(felem out, const smallfelem in)
fep256.c:             ^
fep256.c: fep256.c:177:13: warning: unused function 'longfelem_scalar' [-Wunused-function]
fep256.c: static void longfelem_scalar(longfelem out, const u64 scalar)
fep256.c:             ^
fep256.c: fep256.c:200:13: warning: unused function 'smallfelem_neg' [-Wunused-function]
fep256.c: static void smallfelem_neg(felem out, const smallfelem small)
fep256.c:             ^
fep256.c: fep256.c:243:13: warning: unused function 'felem_diff_zero107' [-Wunused-function]
fep256.c: static void felem_diff_zero107(felem out, const felem in)
fep256.c:             ^
fep256.c: fep256.c:263:13: warning: unused function 'longfelem_diff' [-Wunused-function]
fep256.c: ...

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:wblclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (4.2.1_Compatible_Clang_7.0.1_(tags/RELEASE_701/final))

Compiler output


curve.c: curve.c: In function 'p256dblmult_base':
curve.c: curve.c:256:7: warning: unused variable 'k' [-Wunused-variable]
curve.c:    int k;
curve.c:        ^
fep256.c: fep256.c: In function 'fep256unpack':
fep256.c: fep256.c:1076:14: warning: unused variable 'temp' [-Wunused-variable]
fep256.c:    smallfelem temp;
fep256.c:               ^~~~
fep256.c: At top level:
fep256.c: fep256.c:967:1: warning: 'copy_small_conditional' defined but not used [-Wunused-function]
fep256.c:  copy_small_conditional(felem out, const smallfelem in, limb mask)
fep256.c:  ^~~~~~~~~~~~~~~~~~~~~~
fep256.c: fep256.c:955:1: warning: 'copy_conditional' defined but not used [-Wunused-function]
fep256.c:  copy_conditional(felem out, const felem in, limb mask)
fep256.c:  ^~~~~~~~~~~~~~~~
fep256.c: fep256.c:944:13: warning: 'smallfelem_inv_contract' defined but not used [-Wunused-function]
fep256.c:  static void smallfelem_inv_contract(smallfelem out, const smallfelem in)
fep256.c:              ^~~~~~~~~~~~~~~~~~~~~~~
fep256.c: fep256.c:819:13: warning: 'smallfelem_mul_contract' defined but not used [-Wunused-function]
fep256.c:  static void smallfelem_mul_contract(smallfelem out, const smallfelem in1, const smallfelem in2)
fep256.c:              ^~~~~~~~~~~~~~~~~~~~~~~
fep256.c: fep256.c:809:13: warning: 'smallfelem_square_contract' defined but not used [-Wunused-function]
fep256.c:  static void smallfelem_square_contract(smallfelem out, const smallfelem in)
fep256.c:              ^~~~~~~~~~~~~~~~~~~~~~~~~~
fep256.c: fep256.c:718:13: warning: 'felem_reduce_zero105' defined but not used [-Wunused-function]
fep256.c:  static void felem_reduce_zero105(felem out, const longfelem in)
fep256.c:              ^~~~~~~~~~~~~~~~~~~~
fep256.c: fep256.c:623:13: warning: 'felem_small_mul' defined but not used [-Wunused-function]
fep256.c:  static void felem_small_mul(longfelem out, const smallfelem small1, const felem in2)
fep256.c: ...

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:wblgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:wblgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:wblgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:wblgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)

Namespace violations


curve.o basep D
curve.o p256add T
curve.o p256add_total T
curve.o p256base T
curve.o p256cmov T
curve.o p256dbl T
curve.o p256dbl_total T
curve.o p256dblmult_base T
curve.o p256identity T
curve.o p256madd T
curve.o p256oncurvefinite T
curve.o p256pack T
curve.o p256scalarmult T
curve.o p256scalarmult_base T
curve.o p256scalarmult_base_fast T
curve.o p256unpack T
curve.o p256xpack T
curve.o paramb D
curve.o precomp D
fep256.o fep256add T
fep256.o fep256cmov T
fep256.o fep256inv T
fep256.o fep256iszero T
fep256.o fep256mul T
fep256.o fep256pack T
fep256.o fep256scalar T
fep256.o fep256setone T
fep256.o fep256setzero T
fep256.o fep256sqr T
fep256.o fep256sub T
fep256.o fep256unpack T

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:wblclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (4.2.1_Compatible_Clang_7.0.1_(tags/RELEASE_701/final))
T:wblgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:wblgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:wblgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:wblgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)