3#ifndef TETL_CMATH_ISNAN_HPP
4#define TETL_CMATH_ISNAN_HPP
16[[nodiscard]]
constexpr auto isnan(
float arg) ->
bool
18#if __has_builtin(__builtin_isnanf) or defined(TETL_COMPILER_GCC)
19 return __builtin_isnanf(
arg);
26[[nodiscard]]
constexpr auto isnan(
double arg) ->
bool
28#if __has_builtin(__builtin_isnan) or defined(TETL_COMPILER_GCC)
29 return __builtin_isnan(
arg) != 0;
36[[nodiscard]]
constexpr auto isnan(
long double arg) ->
bool
38#if __has_builtin(__builtin_isnanl) or defined(TETL_COMPILER_GCC)
39 return __builtin_isnanl(
arg);
48template <
integral Int>
49[[nodiscard]]
constexpr auto isnan(Int
arg) ->
bool
51 return isnan(
static_cast<double>(
arg));
constexpr auto arg(complex< T > const &z) noexcept -> T
Definition arg.hpp:15
Definition adjacent_find.hpp:8
constexpr auto isnan(half arg) noexcept -> bool
Definition half.hpp:60