| 1 | Ref: https://raw.githubusercontent.com/haiku/haiku/master/headers/cpp/limits |
| 2 | |
| 3 | {{{ |
| 4 | |
| 5 | #if !defined(__STRICT_ANSI__) && defined(_GLIBCXX_USE_INT128) |
| 6 | /// numeric_limits<__int128> specialization. |
| 7 | template<> |
| 8 | struct numeric_limits<__int128> |
| 9 | { |
| 10 | static const bool is_specialized = true; |
| 11 | |
| 12 | static const __int128 |
| 13 | min() { return __glibcxx_min (__int128); } |
| 14 | |
| 15 | static const __int128 |
| 16 | max() { return __glibcxx_max (__int128); } |
| 17 | |
| 18 | #if __cplusplus >= 201103L |
| 19 | static constexpr __int128 |
| 20 | lowest() noexcept { return min(); } |
| 21 | #endif |
| 22 | }}} |
| 23 | |