| 53 | } |
| 54 | |
| 55 | static long long max_value(std::uint8_t bit) { |
| 56 | assert(bit > 0); |
| 57 | if (bit >= 64) |
| 58 | return (~0ULL) >> 1; |
| 59 | return (1LL << (bit-1)) - 1LL; |
| 60 | } |
| 61 | |
| 62 | static unsigned long long max_value_unsigned(std::uint8_t bit) { |
| 63 | assert(bit > 0); |
no outgoing calls
no test coverage detected