| 30 | namespace { |
| 31 | |
| 32 | std::string valueToString(int128_t value, int32_t& scale, int32_t& nDigits) { |
| 33 | while (value > 0 && value % 10 == 0) { |
| 34 | scale--; |
| 35 | value /= 10; |
| 36 | } |
| 37 | std::string valueStr; |
| 38 | valueStr = std::to_string(value); |
| 39 | nDigits = valueStr.size(); |
| 40 | return valueStr; |
| 41 | } |
| 42 | |
| 43 | int countBits(int64_t v) { |
| 44 | if (v == 0L) { |
no test coverage detected