Skip to content

SHZ_FLOAT_BARRIER

Markdown
#define SHZ_FLOAT_BARRIER(x) asm volatile("" : "+f" (x))

Forces the float x to be computed before the barrier and prevents the compiler from sinking or reusing it past the barrier.