Implementation notes: amd64, beelink, crypto_kem/sntrup761

Computer: beelink
Microarchitecture: amd64; Zen3 (a50f00)
Architecture: amd64
CPU ID: AuthenticAMD-00a50f00-178bfbff
SUPERCOP version: 20221122
Operation: crypto_kem
Primitive: sntrup761
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
8218816562 0 0401603 836 1792avxgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023010420221122
8241616346 0 0400738 876 1760avxclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
8243416562 0 0397971 828 1760avxgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023010420221122
8244016346 0 0399392 868 1824avxclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
8246816364 0 0398722 876 1760avxclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
8251616562 0 0399731 836 1792avxgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023010420221122
8253716616 0 0399131 836 1792avxgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023010420221122
8254716346 0 0404954 876 1760avxclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
8301216346 0 0404970 876 1760avxclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-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 761
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 761
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 761
kem.c: | ^~~
kem.c: params.h:4:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 4 | #define p 761
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 286
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 286
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 286
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 286
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 286
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 286
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:11:11: note: expanded from macro 'p'
kem.c: #define p 761
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:11:11: note: expanded from macro 'p'
kem.c: #define p 761
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:11:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 11 | #define p 761
kem.c: | ^~~
kem.c: params.h:11:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 11 | #define p 761
kem.c: | ^~~
kem.c: params.h:16:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 16 | #define w 286
kem.c: | ^~~
kem.c: params.h:16:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 16 | #define w 286
kem.c: | ^~~
kem.c: params.h:16:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 16 | #define w 286
kem.c: | ^~~
kem.c: params.h:16:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 16 | #define w 286
kem.c: | ^~~
kem.c: params.h:16:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 16 | #define w 286
kem.c: | ^~~
kem.c: params.h:16:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 16 | #define w 286
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