DescriptionMake QPCValueToMicroseconds faster in case the value is less than 44 bits
If the QPC value is less than 44 bits, it is safe to multiply by a 20 bits
value (1000000) without risking overflow. This optimization reduces the
call time by half.
BUG=158234
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287704
Patch Set 1 #
Total comments: 10
Patch Set 2 : Add unit tests, change bit check to a compare" #Patch Set 3 : Fix comments #Patch Set 4 : Typo #
Total comments: 4
Patch Set 5 : Add one more test for exactly qpc_value is the threshold #
Messages
Total messages: 15 (0 generated)
|