# shz_log2f

Source: https://sh4zam.com/api/scalar/shz_log2f/

```c
SHZ_INLINE float shz_log2f(float x) SHZ_NOEXCEPT;
```

Fast approximation for C's log2f().

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `x` | `float` |  |

## Returns

`float`

## Availability

- **C++ equivalent:** [`shz::log2f`](https://sh4zam.com/api/cpp/#shzlog2f)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_scalar.h:339`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_scalar.h#L339)
- **Module:** [Scalar](https://sh4zam.com/api/scalar/), section "Transcendental"
