Implementation notes: amd64, sliver, crypto_aead/hs1sivv2

Computer: sliver
Architecture: amd64
CPU ID: GenuineIntel-00040651-bfebfbff
SUPERCOP version: 20160731
Operation: crypto_aead
Primitive: hs1sivv2
TimeImplementationCompilerBenchmark dateSUPERCOP version
14808fasterclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016080120160731

Compiler output

Implementation: crypto_aead/hs1sivv2/ref
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
encrypt.c: encrypt.c:84:17: error: expected identifier or '('
encrypt.c: static uint32_t swap32(uint32_t x) {
encrypt.c: ^
encrypt.c: /usr/include/sys/endian.h:71:19: note: expanded from macro 'swap32'
encrypt.c: #define swap32(x) __swap32(x)
encrypt.c: ^
encrypt.c: /usr/include/sys/_endian.h:117:21: note: expanded from macro '__swap32'
encrypt.c: #define __swap32(x) __statement({ \
encrypt.c: ^
encrypt.c: /usr/include/sys/cdefs.h:227:24: note: expanded from macro '__statement'
encrypt.c: #define __statement(x) __extension__(x)
encrypt.c: ^
encrypt.c: encrypt.c:89:17: error: expected identifier or '('
encrypt.c: static uint64_t swap64(uint64_t x) {
encrypt.c: ^
encrypt.c: /usr/include/sys/endian.h:72:19: note: expanded from macro 'swap64'
encrypt.c: #define swap64(x) __swap64(x)
encrypt.c: ^
encrypt.c: /usr/include/sys/_endian.h:124:21: note: expanded from macro '__swap64'
encrypt.c: #define __swap64(x) __statement({ \
encrypt.c: ^
encrypt.c: /usr/include/sys/cdefs.h:227:24: note: expanded from macro '__statement'
encrypt.c: #define __statement(x) __extension__(x)
encrypt.c: ^
encrypt.c: 2 errors generated.

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments ref

Compiler output

Implementation: crypto_aead/hs1sivv2/faster
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
try.c: /tmp/try-anything-77b683.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.c: /tmp/try-anything-d69844.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments faster

Compiler output

Implementation: crypto_aead/hs1sivv2/ref
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
encrypt.c: encrypt.c:84: error: expected identifier or '(' before '__extension__'
encrypt.c: encrypt.c:84: error: expected identifier or '(' before ')' token
encrypt.c: encrypt.c:89: error: expected identifier or '(' before '__extension__'
encrypt.c: encrypt.c:89: error: expected identifier or '(' before ')' token

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

Compiler output

Implementation: crypto_aead/hs1sivv2/faster
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
hs1.c: hs1.c:27:23: error: immintrin.h: No such file or directory
hs1.c: hs1.c:411: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'm61_mask'
hs1.c: hs1.c:420: error: expected ')' before '*' token
hs1.c: hs1.c:434: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'poly_step'
hs1.c: hs1.c:462: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'poly_finalize'
hs1.c: hs1.c: In function 'hash_step':
hs1.c: hs1.c:483: error: '__m128i' undeclared (first use in this function)
hs1.c: hs1.c:483: error: (Each undeclared identifier is reported only once
hs1.c: hs1.c:483: error: for each function it appears in.)
hs1.c: hs1.c:483: error: expected ';' before 's0'
hs1.c: hs1.c:485: error: expected ';' before 'm60_mask'
hs1.c: hs1.c:487: error: 's0' undeclared (first use in this function)
hs1.c: hs1.c:487: error: 's1' undeclared (first use in this function)
hs1.c: hs1.c:487: error: 's2' undeclared (first use in this function)
hs1.c: hs1.c:487: error: 's3' undeclared (first use in this function)
hs1.c: hs1.c:487: error: 's4' undeclared (first use in this function)
hs1.c: hs1.c:487: error: 's5' undeclared (first use in this function)
hs1.c: hs1.c:489: error: expected ';' before 't0'
hs1.c: hs1.c:490: error: expected ';' before 't1'
hs1.c: hs1.c:491: error: 't0' undeclared (first use in this function)
hs1.c: hs1.c:492: error: 't1' undeclared (first use in this function)
hs1.c: hs1.c:494: error: expected expression before ')' token
hs1.c: hs1.c:495: error: expected expression before ')' token
hs1.c: hs1.c:509: error: 't' undeclared (first use in this function)
hs1.c: hs1.c:509: error: 'm60_mask' undeclared (first use in this function)
hs1.c: ...

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