Compares 2 Decimal256, ignoring scaling.
(long aHH, long aHL, long aLH, long aLL, long bHH, long bHL, long bLH, long bLL)
| 287 | * Compares 2 Decimal256, ignoring scaling. |
| 288 | */ |
| 289 | public static int compare(long aHH, long aHL, long aLH, long aLL, long bHH, long bHL, long bLH, long bLL) { |
| 290 | int s = Long.compare(aHH, bHH); |
| 291 | if (s != 0) { |
| 292 | return s; |
| 293 | } |
| 294 | s = Long.compareUnsigned(aHL, bHL); |
| 295 | if (s != 0) { |
| 296 | return s; |
| 297 | } |
| 298 | s = Long.compareUnsigned(aLH, bLH); |
| 299 | if (s != 0) { |
| 300 | return s; |
| 301 | } |
| 302 | return Long.compareUnsigned(aLL, bLL); |
| 303 | } |
| 304 | |
| 305 | public static int compare(Decimal256 a, Decimal256 b) { |
| 306 | int s = Long.compare(a.getHh(), b.getHh()); |
no test coverage detected