module
consteval_sqrt()std::sqrt alternatives that are always available at compile time.
Functions
- auto consteval_sqrt(half x) -> half constexpr noexcept
- Returns the square-root of a half-precision float.
- auto consteval_sqrt(float x) -> float constexpr noexcept
- Returns the square-root of a float.
- auto consteval_sqrt(double x) -> double constexpr noexcept
- Returns the square-root of a double.
- auto consteval_sqrt(long double x) -> long double constexpr noexcept
- Returns the square-root of a long double.
- auto consteval_sqrt(float128_t x) -> float128_t constexpr noexcept
- Returns the square-root of a float128_t.
- auto consteval_sqrt(_Float16 x) -> _Float16 constexpr noexcept
- Returns the square-root of a _Float16.
-
template <typename T>auto consteval_sqrt(T x) -> double constexpr noexcept
- Returns the square-root of an integer.
Function documentation
half consteval_sqrt(half x) constexpr noexcept
#include <muu/half.h>
Returns the square-root of a half-precision float.
float consteval_sqrt(float x) constexpr noexcept
#include <muu/math.h>
Returns the square-root of a float.
double consteval_sqrt(double x) constexpr noexcept
#include <muu/math.h>
Returns the square-root of a double.
long double consteval_sqrt(long double x) constexpr noexcept
#include <muu/math.h>
Returns the square-root of a long double.
float128_t consteval_sqrt(float128_t x) constexpr noexcept
#include <muu/math.h>
Returns the square-root of a float128_t.
_Float16 consteval_sqrt(_Float16 x) constexpr noexcept
#include <muu/math.h>
Returns the square-root of a _Float16.
#include <muu/math.h>
template <typename T>
double consteval_sqrt(T x) constexpr noexcept
Returns the square-root of an integer.