tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
nan.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CMATH_NAN_HPP
4#define TETL_CMATH_NAN_HPP
5
6#include <etl/_config/all.hpp>
7
8namespace etl {
9
12
20[[nodiscard]] constexpr auto nanf(char const* arg) noexcept -> float
21{
22 (void)arg;
23 return TETL_BUILTIN_NANF("");
24}
25[[nodiscard]] constexpr auto nan(char const* arg) noexcept -> double
26{
27 (void)arg;
28 return TETL_BUILTIN_NAN("");
29}
30[[nodiscard]] constexpr auto nanl(char const* arg) noexcept -> long double
31{
32 (void)arg;
33 return TETL_BUILTIN_NANL("");
34}
35
37
38} // namespace etl
39
40#endif // TETL_CMATH_NAN_HPP
#define TETL_BUILTIN_NAN
Definition builtin_functions.hpp:57
#define TETL_BUILTIN_NANL(arg)
Definition builtin_functions.hpp:65
#define TETL_BUILTIN_NANF(arg)
Definition builtin_functions.hpp:51
constexpr auto nan(char const *arg) noexcept -> double
Converts the implementation-defined character string arg into the corresponding quiet NaN value.
Definition nan.hpp:25
constexpr auto nanf(char const *arg) noexcept -> float
Converts the implementation-defined character string arg into the corresponding quiet NaN value.
Definition nan.hpp:20
constexpr auto nanl(char const *arg) noexcept -> long double
Converts the implementation-defined character string arg into the corresponding quiet NaN value.
Definition nan.hpp:30
constexpr auto arg(complex< T > const &z) noexcept -> T
Definition arg.hpp:15
Definition adjacent_find.hpp:8