Implementation notes: amd64, hydra8, crypto_aead/trivia128v1

Computer: hydra8
Microarchitecture: amd64; Ivy Bridge+AES (306a9)
Architecture: amd64
CPU ID: GenuineIntel-000306a9-bfebfbff
SUPERCOP version: 20240625
Operation: crypto_aead
Primitive: trivia128v1

Compiler output


encrypt.c: encrypt.c:52:13: warning: unused variable 'temp' [-Wunused-variable]
encrypt.c: {int i; u64 temp, Block = Bytes[0];
encrypt.c:             ^
encrypt.c: encrypt.c:56:13: warning: unused variable 'temp' [-Wunused-variable]
encrypt.c: {int i; u32 temp, Block = (u8)Bytes[0];
encrypt.c:             ^
encrypt.c: encrypt.c:118:12: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
encrypt.c:         if((a>>31)&1==1) result = result^(CONST_alpha_32);
encrypt.c:                   ^~~~~
encrypt.c: encrypt.c:118:12: note: place parentheses around the '==' expression to silence this warning
encrypt.c:         if((a>>31)&1==1) result = result^(CONST_alpha_32);
encrypt.c:                   ^
encrypt.c:                    (   )
encrypt.c: encrypt.c:118:12: note: place parentheses around the & expression to evaluate it first
encrypt.c:         if((a>>31)&1==1) result = result^(CONST_alpha_32);
encrypt.c:                   ^
encrypt.c:            (        )
encrypt.c: encrypt.c:143:12: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
encrypt.c:         if((b>>63)&1==1) result = result^(CONST_beta_64);
encrypt.c:                   ^~~~~
encrypt.c: encrypt.c:143:12: note: place parentheses around the '==' expression to silence this warning
encrypt.c:         if((b>>63)&1==1) result = result^(CONST_beta_64);
encrypt.c:                   ^
encrypt.c:                    (   )
encrypt.c: encrypt.c:143:12: note: place parentheses around the & expression to evaluate it first
encrypt.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


encrypt.c: encrypt.c: In function 'load64':
encrypt.c: encrypt.c:52:13: warning: unused variable 'temp' [-Wunused-variable]
encrypt.c:    52 | {int i; u64 temp, Block = Bytes[0];
encrypt.c:       |             ^~~~
encrypt.c: encrypt.c: In function 'load32':
encrypt.c: encrypt.c:56:13: warning: unused variable 'temp' [-Wunused-variable]
encrypt.c:    56 | {int i; u32 temp, Block = (u8)Bytes[0];
encrypt.c:       |             ^~~~
encrypt.c: encrypt.c: In function 'Mult_by_alpha_power':
encrypt.c: encrypt.c:118:19: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
encrypt.c:   118 |         if((a>>31)&1==1) result = result^(CONST_alpha_32);
encrypt.c:       |                   ^
encrypt.c: encrypt.c: In function 'Mult_by_beta_power':
encrypt.c: encrypt.c:143:19: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
encrypt.c:   143 |         if((b>>63)&1==1) result = result^(CONST_beta_64);
encrypt.c:       |                   ^
encrypt.c: encrypt.c: In function 'Field_Mult_32':
encrypt.c: encrypt.c:178:8: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
encrypt.c:   178 |    if(b&1==1) result=a;
encrypt.c:       |        ^
encrypt.c: encrypt.c:184:13: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
encrypt.c:   184 |         if(b&1==1) result=result^a;
encrypt.c:       |             ^
encrypt.c: encrypt.c: In function 'Initialize_process_AD_Reinitialize':
encrypt.c: encrypt.c:228:7: warning: unused variable 'FINISH' [-Wunused-variable]
encrypt.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)