Implementation notes: amd64, beelink, crypto_kem/sntrup1277

Computer: beelink
Microarchitecture: amd64; Zen3 (a50f00)
Architecture: amd64
CPU ID: AuthenticAMD-00a50f00-178bfbff
SUPERCOP version: 20221122
Operation: crypto_kem
Primitive: sntrup1277
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
13218316958 0 0151640 868 1824avxclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
13240517174 0 0153851 836 1792avxgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023010420221122
13242617228 0 0151379 836 1792avxgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023010420221122
13245016976 0 0150986 876 1760avxclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
13246116958 0 0157250 876 1760avxclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
13253617174 0 0150187 828 1760avxgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023010420221122
13255316958 0 0157234 876 1760avxclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
13296516958 0 0153018 876 1760avxclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
13317217174 0 0151979 836 1792avxgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023010420221122

Compiler output

Implementation: factored
Security model: constbranchindex
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
kem.c: In file included from kem.c:4:
kem.c: In file included from /home/djb/supercop-20221122/supercop-data/beelink/amd64/include/constbranchindex/crypto_hash_sha512.h:4:
kem.c: In file included from /usr/include/openssl/rand.h:20:
kem.c: In file included from /usr/include/openssl/types.h:21:
kem.c: In file included from /usr/include/openssl/safestack.h:24:
kem.c: /usr/include/openssl/stack.h:45:60: error: expected ')'
kem.c: void *OPENSSL_sk_delete_ptr(OPENSSL_STACK *st, const void *p);
kem.c: ^
kem.c: ./params.h:4:11: note: expanded from macro 'p'
kem.c: #define p 1277
kem.c: ^
kem.c: /usr/include/openssl/stack.h:45:28: note: to match this '('
kem.c: void *OPENSSL_sk_delete_ptr(OPENSSL_STACK *st, const void *p);
kem.c: ^
kem.c: In file included from kem.c:4:
kem.c: In file included from /home/djb/supercop-20221122/supercop-data/beelink/amd64/include/constbranchindex/crypto_hash_sha512.h:4:
kem.c: In file included from /usr/include/openssl/rand.h:23:
kem.c: In file included from /usr/include/openssl/evp.h:30:
kem.c: /usr/include/openssl/bio.h:734:51: error: expected ')'
kem.c: int BIO_ADDR_rawaddress(const BIO_ADDR *ap, void *p, size_t *l);
kem.c: ^
kem.c: ./params.h:4:11: note: expanded from macro 'p'
kem.c: #define p 1277
kem.c: ^
kem.c: /usr/include/openssl/bio.h:734:24: note: to match this '('
kem.c: ...

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

Compiler output

Implementation: factored
Security model: constbranchindex
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
kem.c: In file included from kem.c:1:
kem.c: params.h:4:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 4 | #define p 1277
kem.c: | ^~~~
kem.c: params.h:4:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 4 | #define p 1277
kem.c: | ^~~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 492
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 492
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 492
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 492
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 492
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 492
kem.c: | ^~~
kem.c: ...

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

Compiler output

Implementation: ref
Security model: constbranchindex
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
kem.c: In file included from kem.c:5:
kem.c: In file included from /home/djb/supercop-20221122/supercop-data/beelink/amd64/include/constbranchindex/crypto_hash_sha512.h:4:
kem.c: In file included from /usr/include/openssl/rand.h:20:
kem.c: In file included from /usr/include/openssl/types.h:21:
kem.c: In file included from /usr/include/openssl/safestack.h:24:
kem.c: /usr/include/openssl/stack.h:45:60: error: expected ')'
kem.c: void *OPENSSL_sk_delete_ptr(OPENSSL_STACK *st, const void *p);
kem.c: ^
kem.c: ./params.h:86:11: note: expanded from macro 'p'
kem.c: #define p 1277
kem.c: ^
kem.c: /usr/include/openssl/stack.h:45:28: note: to match this '('
kem.c: void *OPENSSL_sk_delete_ptr(OPENSSL_STACK *st, const void *p);
kem.c: ^
kem.c: In file included from kem.c:5:
kem.c: In file included from /home/djb/supercop-20221122/supercop-data/beelink/amd64/include/constbranchindex/crypto_hash_sha512.h:4:
kem.c: In file included from /usr/include/openssl/rand.h:23:
kem.c: In file included from /usr/include/openssl/evp.h:30:
kem.c: /usr/include/openssl/bio.h:734:51: error: expected ')'
kem.c: int BIO_ADDR_rawaddress(const BIO_ADDR *ap, void *p, size_t *l);
kem.c: ^
kem.c: ./params.h:86:11: note: expanded from macro 'p'
kem.c: #define p 1277
kem.c: ^
kem.c: /usr/include/openssl/bio.h:734:24: note: to match this '('
kem.c: ...

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

Compiler output

Implementation: ref
Security model: constbranchindex
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
kem.c: In file included from kem.c:2:
kem.c: params.h:86:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 86 | #define p 1277
kem.c: | ^~~~
kem.c: params.h:86:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 86 | #define p 1277
kem.c: | ^~~~
kem.c: params.h:91:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 91 | #define w 492
kem.c: | ^~~
kem.c: params.h:91:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 91 | #define w 492
kem.c: | ^~~
kem.c: params.h:91:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 91 | #define w 492
kem.c: | ^~~
kem.c: params.h:91:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 91 | #define w 492
kem.c: | ^~~
kem.c: params.h:91:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 91 | #define w 492
kem.c: | ^~~
kem.c: params.h:91:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 91 | #define w 492
kem.c: | ^~~
kem.c: ...

Number of similar (compiler,implementation) pairs: 4, 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
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE ref