Home GnuPG

bench-slope: restore compiler barriers for auto-GHZ check

Description

bench-slope: restore compiler barriers for auto-GHZ check

* tests/bench-slope.c (auto_ghz_bench): Add memory barriers to
AUTO_GHZ_OPERATION macro when barrier is supported by compiler.

Clang is buggy and is optimizing away the auto-GHZ loop even
when 'one' and 'two' variables have been derived from volatile
variables. Restore compiler barrier to ensure that auto-GHZ
calibration is not optimized away.

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Dec 21 2023, 5:51 PM
Parents
rC956f1ed4ec6e: mpi/ec-inline: refactor i386 assembly to reduce register usage
Branches
Unknown
Tags
Unknown