NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
arithmetic.hpp
Go to the documentation of this file.
1#pragma once
2#include <types.h>
3/// @file
4
5namespace nw4r {
6namespace math {
7
8/// @brief Computes the inverse square root of the given value.
9float FrSqrt(float x);
10
11/// @brief Computes the square root of the given value.
12inline float FSqrt(float x) {
13 return (x <= 0) ? 0.0f : x * FrSqrt(x);
14}
15
16} // namespace math
17} // namespace nw4r
Math library.
Definition docgroup.h:16
float FSqrt(float x)
Computes the square root of the given value.
float FrSqrt(float x)
Computes the inverse square root of the given value.