Implementation notes: amd64, kizomba, crypto_encrypt/mcnie3q1281

Computer: kizomba
Microarchitecture: amd64; Kaby Lake (906e9)
Architecture: amd64
CPU ID: GenuineIntel-000906e9-1fc9cbf5
SUPERCOP version: 20240625
Operation: crypto_encrypt
Primitive: mcnie3q1281
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
1332160136089 6 5257077 816 1704T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625
3392062730419 6 5250125 808 1672T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625

Compiler output


bin_vec.c: bin_vec.c:201:8: warning: unused variable 'last' [-Wunused-variable]
bin_vec.c:         short last = x->size - ((n-1)<<5);
bin_vec.c:               ^
bin_vec.c: 1 warning generated.
conv.c: conv.c:142:4: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation]
conv.c:           for( i=0 ; i<nr ; i++ )
conv.c:           ^
conv.c: conv.c:127:2: note: previous statement is here
conv.c:         for( i=0 ; i<nr ; i++ )
conv.c:         ^
conv.c: 1 warning generated.
crypt.c: crypt.c:312:8: warning: variable 'blk2' set but not used [-Wunused-but-set-variable]
crypt.c:         short blk2,blk3;
crypt.c:               ^
crypt.c: crypt.c:421:8: warning: variable 'blk2' set but not used [-Wunused-but-set-variable]
crypt.c:         short blk2,blk3;
crypt.c:               ^
crypt.c: crypt.c:515:8: warning: variable 'blk2' set but not used [-Wunused-but-set-variable]
crypt.c:         short blk2,blk3;
crypt.c:               ^
crypt.c: crypt.c:515:13: warning: variable 'blk3' set but not used [-Wunused-but-set-variable]
crypt.c:         short blk2,blk3;
crypt.c:                    ^
crypt.c: crypt.c:653:8: warning: variable 'blk2' set but not used [-Wunused-but-set-variable]
crypt.c:         short blk2,blk3;
crypt.c:               ^
crypt.c: crypt.c:653:13: warning: variable 'blk3' set but not used [-Wunused-but-set-variable]
crypt.c:         short blk2,blk3;
crypt.c:                    ^
crypt.c: crypt.c:786:29: warning: variable 'cip_len' set but not used [-Wunused-but-set-variable]
crypt.c:         unsigned long long msg_len,cip_len,er_dat_len,y_len;
crypt.c:                                    ^
crypt.c: crypt.c:843:29: warning: variable 'cip_len' set but not used [-Wunused-but-set-variable]
crypt.c:         unsigned long long msg_len,cip_len,er_dat_len;
crypt.c:                                    ^
crypt.c: crypt.c:922:31: warning: variable 'res_bytes' set but not used [-Wunused-but-set-variable]
crypt.c: ...

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)

Compiler output


bin_vec.c: bin_vec.c: In function 'Shift':
bin_vec.c: bin_vec.c:201:15: warning: unused variable 'last' [-Wunused-variable]
bin_vec.c:   201 |         short last = x->size - ((n-1)<<5);
bin_vec.c:       |               ^~~~
conv.c: conv.c: In function 'conv':
conv.c: conv.c:127:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
conv.c:   127 |         for( i=0 ; i<nr ; i++ )
conv.c:       |         ^~~
conv.c: conv.c:142:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
conv.c:   142 |           for( i=0 ; i<nr ; i++ )
conv.c:       |           ^~~
crypt.c: crypt.c: In function 'encrypt_one_block':
crypt.c: crypt.c:312:15: warning: variable 'blk2' set but not used [-Wunused-but-set-variable]
crypt.c:   312 |         short blk2,blk3;
crypt.c:       |               ^~~~
crypt.c: crypt.c: In function 'encrypt_one_block_given_error':
crypt.c: crypt.c:421:15: warning: variable 'blk2' set but not used [-Wunused-but-set-variable]
crypt.c:   421 |         short blk2,blk3;
crypt.c:       |               ^~~~
crypt.c: crypt.c: In function 'decrypt_one_block':
crypt.c: crypt.c:515:20: warning: variable 'blk3' set but not used [-Wunused-but-set-variable]
crypt.c:   515 |         short blk2,blk3;
crypt.c:       |                    ^~~~
crypt.c: crypt.c:515:15: warning: variable 'blk2' set but not used [-Wunused-but-set-variable]
crypt.c:   515 |         short blk2,blk3;
crypt.c:       |               ^~~~
crypt.c: crypt.c: In function 'decrypt_one_block_return_error':
crypt.c: crypt.c:653:20: warning: variable 'blk3' set but not used [-Wunused-but-set-variable]
crypt.c:   653 |         short blk2,blk3;
crypt.c:       |                    ^~~~
crypt.c: crypt.c:653:15: warning: variable 'blk2' set but not used [-Wunused-but-set-variable]
crypt.c:   653 |         short blk2,blk3;
crypt.c:       |               ^~~~
crypt.c: crypt.c: In function 'crypto_encrypt_mcnie3q1281_ref_timingleaks':
crypt.c: crypt.c:922:38: warning: variable 'res_bytes' set but not used [-Wunused-but-set-variable]
crypt.c:   922 |         unsigned long long num_block,res_bytes,real_mlen;
crypt.c: ...

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)
T:refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)
T:refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)
T:refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)