# SHZ_FLOAT_BARRIER

Source: https://sh4zam.com/api/cdefs/SHZ_FLOAT_BARRIER/

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

```c
#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.

## Availability

- **C++ equivalent:** none (usable from C++ as is)
- **Back-ends:** n/a (not a function)
- **Defined in:** [`sh4zam/shz_cdefs.h:218`](https://github.com/gyrovorbis/sh4zam/blob/6b22b851ad9ca109049f956dbbbecf7c519c959f/include/sh4zam/shz_cdefs.h#L218)
- **Module:** [Compiler Definitions](https://sh4zam.com/api/cdefs/), section "Not in upstream reference"
