Compare two scaled numbers.
Declared in <llvm/Support/ScaledNumber.h>
template<class DigitsT>
int
compare(
DigitsT LDigits,
int16_t LScale,
DigitsT RDigits,
int16_t RScale);
Compare two scaled numbers. Returns 0 for equal, -1 for less than, and 1 for greater than.
-1 if less, 0 if equal, and 1 if greater.
| Name | Description |
|---|---|
| LDigits | Digits of the left-hand scaled number. |
| LScale | Scale of the left-hand scaled number. |
| RDigits | Digits of the right-hand scaled number. |
| RScale | Scale of the right-hand scaled number. |