# shz_sqrtf_fsrra_safe

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

> Returns the fast approximate square root of the given value, x, using FSRRA, safely returning 0.0f if x == 0.0f

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

Returns the fast approximate square root of the given value, `x`, using FSRRA, safely returning `0.0f` if `x` == `0.0f`.

## Parameters

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

## Returns

`float`

## Naming and requirements

- `_safe`: Guards degenerate input (zero-length vectors, zero denominators) at a small cost. ([Naming and Suffixes](https://sh4zam.com/concepts/naming-and-suffixes/))

## Availability

- **C++ equivalent:** [`shz::sqrtf_fsrra_safe`](https://sh4zam.com/api/cpp/#shzsqrtf_fsrra_safe)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_scalar.h:278`](https://github.com/gyrovorbis/sh4zam/blob/6b22b851ad9ca109049f956dbbbecf7c519c959f/include/sh4zam/shz_scalar.h#L278)
- **Module:** [Scalar](https://sh4zam.com/api/scalar/), section "FSRRA"
