Implementation notes: amd64, trident, crypto_stream/amastrid
Computer: trident
Microarchitecture: amd64; Core 2 65nm (6fb)
Architecture: amd64
CPU ID: GenuineIntel-000006fb-bfebfbff
SUPERCOP version: 20240625
Operation: crypto_stream
Primitive: amastrid
Time | Object size | Test size | Implementation | Compiler | Benchmark date | SUPERCOP version |
72426 | 18064 24 2462 | 36388 1660 3544 | T:ref | g++_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240630 | 20240625 |
74005 | 18815 24 2350 | 37889 1124 3352 | T:ref | clang++_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240630 | 20240625 |
75814 | 17761 24 2350 | 35761 1124 3352 | T:ref | clang++_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240630 | 20240625 |
78501 | 19696 32 2462 | 38869 1652 3544 | T:ref | g++_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240630 | 20240625 |
81942 | 17620 24 2462 | 35024 1628 3544 | T:ref | g++_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240630 | 20240625 |
83741 | 14843 24 2350 | 30627 1100 3352 | T:ref | clang++_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240630 | 20240625 |
112133 | 15384 24 2350 | 34760 1212 3320 | T:ref | clang++_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240630 | 20240625 |
127765 | 11104 24 2462 | 26356 1076 3512 | T:ref | g++_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240630 | 20240625 |
Compiler output
Amastrid.cpp: Amastrid.cpp: In member function 'void Amastrid::Encrypt(unsigned int*)':
Amastrid.cpp: Amastrid.cpp:120:17: warning: 'pos2' may be used uninitialized in this function [-Wmaybe-uninitialized]
Amastrid.cpp: 120 | if (pos1 > pos2)
Amastrid.cpp: | ^~
Amastrid.cpp: Amastrid.cpp: In member function 'void Amastrid::Decrypt(unsigned int*)':
Amastrid.cpp: Amastrid.cpp:253:17: warning: 'pos1temp' may be used uninitialized in this function [-Wmaybe-uninitialized]
Amastrid.cpp: 253 | if (pos1temp > pos2)
Amastrid.cpp: | ^~
Amastrid.cpp: Amastrid.cpp:289:18: warning: 'pos2o' may be used uninitialized in this function [-Wmaybe-uninitialized]
Amastrid.cpp: 289 | else if (pos1 == pos2o)
Amastrid.cpp: | ^~
Amastrid.cpp: Amastrid.cpp:291:17: warning: 'pos1o' may be used uninitialized in this function [-Wmaybe-uninitialized]
Amastrid.cpp: 291 | if (pos2 == pos1o)
Amastrid.cpp: | ^~
Number of similar (implementation,compiler) pairs: 2, namely:
Implementation | Compiler |
T:ref | g++ -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110) |
T:ref | g++ -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110) |
Compiler output
Amastrid.cpp: Amastrid.cpp: In member function 'void Amastrid::Encrypt(unsigned int*)':
Amastrid.cpp: Amastrid.cpp:122:61: warning: 'pos2' may be used uninitialized in this function [-Wmaybe-uninitialized]
Amastrid.cpp: 122 | Amastrid::ShiftRightRot(ar, _size, pos1 - pos2);
Amastrid.cpp: | ~~~~~^~~~~~
Amastrid.cpp: Amastrid.cpp: In member function 'void Amastrid::Decrypt(unsigned int*)':
Amastrid.cpp: Amastrid.cpp:251:13: warning: 'pos1temp' may be used uninitialized in this function [-Wmaybe-uninitialized]
Amastrid.cpp: 251 | if (pos1temp != pos2)
Amastrid.cpp: | ^~
Amastrid.cpp: Amastrid.cpp:289:18: warning: 'pos2o' may be used uninitialized in this function [-Wmaybe-uninitialized]
Amastrid.cpp: 289 | else if (pos1 == pos2o)
Amastrid.cpp: | ^~
Amastrid.cpp: Amastrid.cpp:291:17: warning: 'pos1o' may be used uninitialized in this function [-Wmaybe-uninitialized]
Amastrid.cpp: 291 | if (pos2 == pos1o)
Amastrid.cpp: | ^~
Number of similar (implementation,compiler) pairs: 1, namely:
Implementation | Compiler |
T:ref | g++ -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110) |
Compiler output
Amastrid.cpp: Amastrid.cpp: In member function 'void Amastrid::Encrypt(unsigned int*)':
Amastrid.cpp: Amastrid.cpp:126:60: warning: 'pos2' may be used uninitialized in this function [-Wmaybe-uninitialized]
Amastrid.cpp: 126 | Amastrid::ShiftLeftRot(ar, _size, pos2 - pos1);
Amastrid.cpp: | ~~~~~^~~~~~
Amastrid.cpp: Amastrid.cpp: In member function 'void Amastrid::Decrypt(unsigned int*)':
Amastrid.cpp: Amastrid.cpp:251:13: warning: 'pos1temp' may be used uninitialized in this function [-Wmaybe-uninitialized]
Amastrid.cpp: 251 | if (pos1temp != pos2)
Amastrid.cpp: | ^~
Amastrid.cpp: Amastrid.cpp:289:18: warning: 'pos2o' may be used uninitialized in this function [-Wmaybe-uninitialized]
Amastrid.cpp: 289 | else if (pos1 == pos2o)
Amastrid.cpp: | ^~
Amastrid.cpp: Amastrid.cpp:291:17: warning: 'pos1o' may be used uninitialized in this function [-Wmaybe-uninitialized]
Amastrid.cpp: 291 | if (pos2 == pos1o)
Amastrid.cpp: | ^~
Number of similar (implementation,compiler) pairs: 1, namely:
Implementation | Compiler |
T:ref | g++ -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110) |