Implementation notes: amd64, beelink, crypto_kem/ntrulpr1277

Computer: beelink
Microarchitecture: amd64; Zen3 (a50f00)
Architecture: amd64
CPU ID: AuthenticAMD-00a50f00-178bfbff
SUPERCOP version: 20221122
Operation: crypto_kem
Primitive: ntrulpr1277

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: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: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: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: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:2:
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 429
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 429
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 429
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 429
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 429
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 429
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:93:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 93 | #define w 429
kem.c: | ^~~
kem.c: params.h:93:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 93 | #define w 429
kem.c: | ^~~
kem.c: params.h:93:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 93 | #define w 429
kem.c: | ^~~
kem.c: params.h:93:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 93 | #define w 429
kem.c: | ^~~
kem.c: params.h:93:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 93 | #define w 429
kem.c: | ^~~
kem.c: params.h:93:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 93 | #define w 429
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