tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
typedefs.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CMATH_TYPEDEFS_HPP
4#define TETL_CMATH_TYPEDEFS_HPP
5
6#include <etl/_config/all.hpp>
7
8#if defined(TETL_COMPILER_MSVC)
9 #include <math.h>
10#else
11 #ifndef NAN
12 #define NAN TETL_BUILTIN_NAN("")
13 #endif
14
15 #ifndef INFINITY
16 #define INFINITY TETL_BUILTIN_HUGE_VALF
17 #endif
18
19 #ifndef HUGE_VALF
20 #define HUGE_VALF TETL_BUILTIN_HUGE_VALF
21 #endif
22
23 #ifndef HUGE_VAL
24 #define HUGE_VAL TETL_BUILTIN_HUGE_VAL
25 #endif
26
27 #ifndef HUGE_VALL
28 #define HUGE_VALL TETL_BUILTIN_HUGE_VALL
29 #endif
30#endif
31
32namespace etl {
33
36using float_t = float;
37
40using double_t = double;
41
42} // namespace etl
43
44#endif // TETL_CMATH_TYPEDEFS_HPP
double double_t
Most efficient floating-point type at least as wide as double.
Definition typedefs.hpp:40
float float_t
Most efficient floating-point type at least as wide as float.
Definition typedefs.hpp:36
Definition adjacent_find.hpp:8