Implementation notes: amd64, zen3, crypto_sign/edons128ref

Computer: zen3
Architecture: amd64
CPU ID: AuthenticAMD-00a20f10-178bfbff
SUPERCOP version: 20211108
Operation: crypto_sign
Primitive: edons128ref
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
287364839265 0 263284251 1060 4376T:refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2022020620211108
295163851966 0 263296707 1060 4376T:refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2022020620211108
359489941203 0 263281155 1060 4376T:refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2022020620211108
381621417953 0 263255577 1052 4376T:refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2022020620211108
393795320434 0 263258259 1060 4376T:refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2022020620211108
400614229196 0 263268024 1028 4440T:refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2022020620211108
408814222649 0 263260335 1036 4440T:refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2022020620211108
413719322212 0 263259423 1036 4440T:refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2022020620211108
509104517006 0 263253323 1028 4408T:refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2022020620211108

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
mpfq_2_128.c: mpfq_2_128.c:154:35: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
mpfq_2_128.c: int ret = mpn_set_str(zz, tmp, len, k->io_type);
mpfq_2_128.c: ^~~
mpfq_2_128.c: /mnt/nvme0/supercop/supercop-20211108/supercop-data/archlinux/amd64/include/gmp.h:1595:68: note: passing argument to parameter here
mpfq_2_128.c: __GMP_DECLSPEC mp_size_t mpn_set_str (mp_ptr, const unsigned char *, size_t, int);
mpfq_2_128.c: ^
mpfq_2_128.c: 1 warning generated.
sign.c: sign.c:815:63: warning: incompatible function pointer types passing 'int (const unsigned long *, const unsigned long *)' to parameter of type '__compar_fn_t' (aka 'int (*)(const void *, const void *)') [-Wincompatible-function-pointer-types]
sign.c: qsort(allcandidates, NumberOfAllCandidates, sizeof(Kelt), compare);
sign.c: ^~~~~~~
sign.c: /usr/include/stdlib.h:831:20: note: passing argument to parameter '__compar' here
sign.c: __compar_fn_t __compar) __nonnull ((1, 4));
sign.c: ^
sign.c: sign.c:566:83: warning: for loop has empty body [-Wempty-body]
sign.c: for(i=0; i<(1<<(mu + 1 + ErrorBasisDimension))+2; i++) Kinit(allcandidates[i]);
sign.c: ^
sign.c: sign.c:566:83: note: put the semicolon on a separate line to silence this warning
sign.c: sign.c:880:84: warning: for loop has empty body [-Wempty-body]
sign.c: for(i=0; i<(1<<(mu + 1 + ErrorBasisDimension))+2; i++) Kclear(allcandidates[i]);
sign.c: ^
sign.c: sign.c:880:84: note: put the semicolon on a separate line to silence this warning
sign.c: sign.c:975:63: warning: incompatible function pointer types passing 'int (const unsigned long *, const unsigned long *)' to parameter of type '__compar_fn_t' (aka 'int (*)(const void *, const void *)') [-Wincompatible-function-pointer-types]
sign.c: qsort(allcandidates, NumberOfAllCandidates, sizeof(Kelt), compare);
sign.c: ^~~~~~~
sign.c: /usr/include/stdlib.h:831:20: note: passing argument to parameter '__compar' here
sign.c: __compar_fn_t __compar) __nonnull ((1, 4));
sign.c: ^
sign.c: sign.c:934:83: warning: for loop has empty body [-Wempty-body]
sign.c: for(i=0; i<(1<<(mu + 1 + ErrorBasisDimension))+2; i++) Kinit(allcandidates[i]);
sign.c: ^
sign.c: sign.c:934:83: note: put the semicolon on a separate line to silence this warning
sign.c: 5 warnings generated.

Number of similar (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
sign.c: sign.c: In function ‘crypto_sign_edons128ref_ref_timingleaks’:
sign.c: sign.c:815:63: warning: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types]
sign.c: 815 | qsort(allcandidates, NumberOfAllCandidates, sizeof(Kelt), compare);
sign.c: | ^~~~~~~
sign.c: | |
sign.c: | int (*)(const long unsigned int *, const long unsigned int *)
sign.c: In file included from sign.c:2:
sign.c: /usr/include/stdlib.h:831:34: note: expected ‘__compar_fn_t’ {aka ‘int (*)(const void *, const void *)’} but argument is of type ‘int (*)(const long unsigned int *, const long unsigned int *)’
sign.c: 831 | __compar_fn_t __compar) __nonnull ((1, 4));
sign.c: | ~~~~~~~~~~~~~~^~~~~~~~
sign.c: sign.c: In function ‘crypto_sign_edons128ref_ref_timingleaks_open’:
sign.c: sign.c:975:63: warning: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types]
sign.c: 975 | qsort(allcandidates, NumberOfAllCandidates, sizeof(Kelt), compare);
sign.c: | ^~~~~~~
sign.c: | |
sign.c: | int (*)(const long unsigned int *, const long unsigned int *)
sign.c: In file included from sign.c:2:
sign.c: /usr/include/stdlib.h:831:34: note: expected ‘__compar_fn_t’ {aka ‘int (*)(const void *, const void *)’} but argument is of type ‘int (*)(const long unsigned int *, const long unsigned int *)’
sign.c: 831 | __compar_fn_t __compar) __nonnull ((1, 4));
sign.c: | ~~~~~~~~~~~~~~^~~~~~~~

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