| 116 | |
| 117 | template<typename T> |
| 118 | inline T maxval() { |
| 119 | if constexpr (std::is_floating_point_v<T> && !fast_math) { |
| 120 | return std::numeric_limits<T>::infinity(); |
| 121 | } else { |
| 122 | return std::numeric_limits<T>::max(); |
| 123 | } |
| 124 | } |
| 125 | template<typename T> |
| 126 | inline T minval() { |
| 127 | if constexpr (std::is_floating_point_v<T> && !fast_math) { |