# shz_fmaf

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

> Replacement for the <math.h> routine, fmaf()

```c
SHZ_INLINE float shz_fmaf(float a, float b, float c) SHZ_NOEXCEPT;
```

Replacement for the \<math.h> routine, fmaf().

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `a` | `float` |  |
| `b` | `float` |  |
| `c` | `float` |  |

## Returns

`float`

## Details

Returns `a` \* `b` + `c`, performing an FP multiply + accumulate operation.

## Availability

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