DescriptionImprovement to SmiLexicalCompare
If two positive Smis have the same number of decimal digits the
lexical order is the same as the numeric order. Values with different
numbers of decimal digits are compared by pre-scaling with some power
of 10 to make the number of digits the same.
This approach avoids the expensive digit generation loop of the
previous approach.
Strengthened testing and fixed bugs. There were several places where
the code was incorrect 32-bit Smis when one of the values is MIN_INT.
Patch Set 1 #
Total comments: 5
Patch Set 2 : '' #Patch Set 3 : '' #Patch Set 4 : '' #Patch Set 5 : '' #
Total comments: 1
Patch Set 6 : '' #Patch Set 7 : '' #
Messages
Total messages: 6 (0 generated)
|