Implementation notes: amd64, speed2supercop, crypto_stream/cryptmtv3

Computer: speed2supercop
Microarchitecture: amd64; Haswell+AES (306c3)
Architecture: amd64
CPU ID: GenuineIntel-000306c3-1fc9cbf5
SUPERCOP version: 20240625
Operation: crypto_stream
Primitive: cryptmtv3
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
664012211 4 426925 756 872T:e/v3gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024070320240625
66529104 4 421789 756 872T:e/v3gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024070320240625
66609891 4 422277 756 872T:e/v3gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024070320240625
679610026 4 124806 796 800T:e/v3clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070320240625
70845836 4 417064 732 840T:e/v3gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024070320240625
71369960 4 122142 796 800T:e/v3clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070320240625
72649953 4 126022 796 816T:e/v3clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070320240625
73408878 4 121943 788 856T:e/v3clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070320240625
74529953 4 126214 796 816T:e/v3clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070320240625

Compiler output


cryptmt-v3.c: In file included from cryptmt-v3.c:1:
cryptmt-v3.c: In file included from ./e/cryptmt-v3.c:66:
cryptmt-v3.c: ./e/sse2.c:126:10: warning: variable 'accum' set but not used [-Wunused-but-set-variable]
cryptmt-v3.c:     u32 *accum;
cryptmt-v3.c:          ^
cryptmt-v3.c: In file included from cryptmt-v3.c:1:
cryptmt-v3.c: ./e/cryptmt-v3.c:149:10: warning: variable 'accum' set but not used [-Wunused-but-set-variable]
cryptmt-v3.c:     u32 *accum;
cryptmt-v3.c:          ^
cryptmt-v3.c: ./e/cryptmt-v3.c:187:2: warning: array index 156 is past the end of the array (that has type 'u32[156][4]' (aka 'unsigned int[156][4]')) [-Warray-bounds]
cryptmt-v3.c:         ps->sfmt[N][i] = ps->sfmt[0][i];
cryptmt-v3.c:         ^        ~
cryptmt-v3.c: ./e/cryptmt-v3.c:25:5: note: array 'sfmt' declared here
cryptmt-v3.c:     u32 sfmt[N][4];
cryptmt-v3.c:     ^
cryptmt-v3.c: ./e/cryptmt-v3.c:189:18: warning: array index 156 is past the end of the array (that has type 'u32[156][4]' (aka 'unsigned int[156][4]')) [-Warray-bounds]
cryptmt-v3.c:     do_recursion(ps->sfmt[N], ps->sfmt[POS1], ps->sfmt[N - 1]);
cryptmt-v3.c:                  ^        ~
cryptmt-v3.c: ./e/cryptmt-v3.c:25:5: note: array 'sfmt' declared here
cryptmt-v3.c:     u32 sfmt[N][4];
cryptmt-v3.c:     ^
cryptmt-v3.c: 4 warnings generated.

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:e/v3clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_16.0.6_(27+b1))
T:e/v3clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_16.0.6_(27+b1))
T:e/v3clang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_16.0.6_(27+b1))
T:e/v3clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_16.0.6_(27+b1))
T:e/v3clang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_16.0.6_(27+b1))

Compiler output


cryptmt-v3.c: In file included from e/cryptmt-v3.c:66,
cryptmt-v3.c:                  from cryptmt-v3.c:1:
cryptmt-v3.c: e/sse2.c: In function 'fast_genrand_bytes':
cryptmt-v3.c: e/sse2.c:126:10: warning: variable 'accum' set but not used [-Wunused-but-set-variable]
cryptmt-v3.c:   126 |     u32 *accum;
cryptmt-v3.c:       |          ^~~~~
cryptmt-v3.c: e/cryptmt-v3.c: In function 'genrand_bytes':
cryptmt-v3.c: e/cryptmt-v3.c:149:10: warning: variable 'accum' set but not used [-Wunused-but-set-variable]
cryptmt-v3.c:   149 |     u32 *accum;
cryptmt-v3.c:       |          ^~~~~
cryptmt-v3.c: e/cryptmt-v3.c: In function 'genrand_block_first':
cryptmt-v3.c: e/cryptmt-v3.c:189:5: warning: 'do_recursion' accessing 16 bytes in a region of size 0 [-Wstringop-overflow=]
cryptmt-v3.c:   189 |     do_recursion(ps->sfmt[N], ps->sfmt[POS1], ps->sfmt[N - 1]);
cryptmt-v3.c:       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cryptmt-v3.c: e/cryptmt-v3.c:189:5: note: referencing argument 1 of type 'u32[4]' {aka 'unsigned int[4]'}
cryptmt-v3.c: e/cryptmt-v3.c:189:5: note: referencing argument 2 of type 'const u32[4]' {aka 'const unsigned int[4]'}
cryptmt-v3.c: e/cryptmt-v3.c:189:5: note: referencing argument 3 of type 'const u32[4]' {aka 'const unsigned int[4]'}
cryptmt-v3.c: e/cryptmt-v3.c:126:20: note: in a call to function 'do_recursion'
cryptmt-v3.c:   126 | static INLINE void do_recursion(u32 a[4], const u32 b[4], const u32 c[4]) {
cryptmt-v3.c:       |                    ^~~~~~~~~~~~
cryptmt-v3.c: e/cryptmt-v3.c:187:17: warning: array subscript 156 is above array bounds of 'u32[156][4]' {aka 'unsigned int[156][4]'} [-Warray-bounds=]
cryptmt-v3.c:   187 |         ps->sfmt[N][i] = ps->sfmt[0][i];
cryptmt-v3.c:       |         ~~~~~~~~^~~
cryptmt-v3.c: e/cryptmt-v3.c:25:9: note: while referencing 'sfmt'
cryptmt-v3.c:    25 |     u32 sfmt[N][4];
cryptmt-v3.c: ...

Number of similar (implementation,compiler) pairs: 3, namely:
ImplementationCompiler
T:e/v3gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.3.0)
T:e/v3gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.3.0)
T:e/v3gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.3.0)

Compiler output


cryptmt-v3.c: In file included from e/cryptmt-v3.c:66,
cryptmt-v3.c:                  from cryptmt-v3.c:1:
cryptmt-v3.c: e/sse2.c: In function 'fast_genrand_bytes':
cryptmt-v3.c: e/sse2.c:126:10: warning: variable 'accum' set but not used [-Wunused-but-set-variable]
cryptmt-v3.c:   126 |     u32 *accum;
cryptmt-v3.c:       |          ^~~~~
cryptmt-v3.c: e/cryptmt-v3.c: In function 'genrand_bytes':
cryptmt-v3.c: e/cryptmt-v3.c:149:10: warning: variable 'accum' set but not used [-Wunused-but-set-variable]
cryptmt-v3.c:   149 |     u32 *accum;
cryptmt-v3.c:       |          ^~~~~
cryptmt-v3.c: e/cryptmt-v3.c: In function 'genrand_block_first':
cryptmt-v3.c: e/cryptmt-v3.c:189:5: warning: 'do_recursion' accessing 16 bytes in a region of size 0 [-Wstringop-overflow=]
cryptmt-v3.c:   189 |     do_recursion(ps->sfmt[N], ps->sfmt[POS1], ps->sfmt[N - 1]);
cryptmt-v3.c:       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cryptmt-v3.c: e/cryptmt-v3.c:189:5: note: referencing argument 1 of type 'u32[4]' {aka 'unsigned int[4]'}
cryptmt-v3.c: e/cryptmt-v3.c:189:5: note: referencing argument 2 of type 'const u32[4]' {aka 'const unsigned int[4]'}
cryptmt-v3.c: e/cryptmt-v3.c:189:5: note: referencing argument 3 of type 'const u32[4]' {aka 'const unsigned int[4]'}
cryptmt-v3.c: e/cryptmt-v3.c:126:20: note: in a call to function 'do_recursion'
cryptmt-v3.c:   126 | static INLINE void do_recursion(u32 a[4], const u32 b[4], const u32 c[4]) {
cryptmt-v3.c:       |                    ^~~~~~~~~~~~

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:e/v3gcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.3.0)