Validates that the scale is within allowed bounds
(int scale)
| 1346 | * Validates that the scale is within allowed bounds |
| 1347 | */ |
| 1348 | private static void validateScale(int scale) { |
| 1349 | // Use unsigned comparison for faster bounds check |
| 1350 | if (Integer.compareUnsigned(scale, MAX_SCALE) > 0) { |
| 1351 | throw NumericException.instance().put("Scale must be between 0 and " + MAX_SCALE + ", got: " + scale); |
| 1352 | } |
| 1353 | } |
| 1354 | |
| 1355 | private int compareTo0(long otherHi, long otherLo) { |
| 1356 | return compare(high, low, otherHi, otherLo); |
no test coverage detected