11 template <typename Int, typename std::enable_if<std::is_integral<Int>::value,
int>::type = 0>
12 constexpr Int
pow(
const Int base,
const unsigned int exponent){
14 for(
unsigned int i = 0; i < exponent; ++i){result *= base;}
23 for(;;++i, (void)++str){
24 if(*str ==
'\0')
return i;
29 float frexp10(
float value,
int* exp10_out);
32 union {
float f; uint32_t i; } u = { value };
33 return ((u.i & 0x7F800000) == 0x7F800000) && ((u.i & 0x007FFFFF) != 0);
37 union {
float f; uint32_t i; } u = { value };
38 return u.i == 0x7F800000;
42 union {
float f; uint32_t i; } u = { value };
43 return u.i == 0xFF800000;
Definition Duration.hpp:17
bool is_pinf(float value)
Definition math.hpp:36
bool is_nan(float value)
Definition math.hpp:31
bool is_inf(float value)
Definition math.hpp:46
constexpr std::size_t string_length(const char *str)
returns the length of a terminated c-style string
Definition math.hpp:21
float frexp10(float value, int *exp10_out)
Definition math.cpp:5
bool is_ninf(float value)
Definition math.hpp:41
constexpr Int pow(const Int base, const unsigned int exponent)
Definition math.hpp:12