module
sqrt()Constexpr-friendly alternatives to std::sqrt.
Functions
- auto sqrt(half x) -> half constexpr noexcept
- Returns the square-root of a half-precision float.
- auto sqrt(float x) -> float constexpr noexcept
- Returns the square-root of a float.
- auto sqrt(double x) -> double constexpr noexcept
- Returns the square-root of a double.
- auto sqrt(long double x) -> long double constexpr noexcept
- Returns the square-root of a long double.
- auto sqrt(float128_t x) -> float128_t constexpr noexcept
- Returns the square-root of a float128_t.
- auto sqrt(_Float16 x) -> _Float16 constexpr noexcept
- Returns the square-root of a _Float16.
-
template <typename T>auto sqrt(T x) -> double constexpr noexcept
- Returns the square-root of an integer.
Function documentation
half sqrt(half x) constexpr noexcept
#include <muu/half.h>
Returns the square-root of a half-precision float.
float sqrt(float x) constexpr noexcept
#include <muu/math.h>
Returns the square-root of a float.
double sqrt(double x) constexpr noexcept
#include <muu/math.h>
Returns the square-root of a double.
long double sqrt(long double x) constexpr noexcept
#include <muu/math.h>
Returns the square-root of a long double.
float128_t sqrt(float128_t x) constexpr noexcept
#include <muu/math.h>
Returns the square-root of a float128_t.
_Float16 sqrt(_Float16 x) constexpr noexcept
#include <muu/math.h>
Returns the square-root of a _Float16.
#include <muu/math.h>
template <typename T>
double sqrt(T x) constexpr noexcept
Returns the square-root of an integer.