cmpBinaryFixedPoint function
Compares two binary fixed-point values with the same fractional bit count.
Returns -1, 0, or 1 depending on whether a is less than, equal to,
or greater than b. Signedness and total bit width are storage concerns and
are allowed to differ.
Implementation
int cmpBinaryFixedPoint(BinaryFixedPoint a, BinaryFixedPoint b) {
_assertComparable(a, b);
return a.raw.compareTo(b.raw).sign;
}