MCPcopy Create free account
hub / github.com/rsc/tmp / CompareBufferWithDiyFp

Function CompareBufferWithDiyFp

ftoa/dblconv/strtod.cc:388–414  ·  view source on GitHub ↗

Returns - -1 if buffer*10^exponent < diy_fp. - 0 if buffer*10^exponent == diy_fp. - +1 if buffer*10^exponent > diy_fp. Preconditions: buffer.length() + exponent <= kMaxDecimalPower + 1 buffer.length() + exponent > kMinDecimalPower buffer.length() <= kMaxDecimalSignificantDigits

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

StrtodTrimmedFunction · 0.85
StrtofTrimmedFunction · 0.85

Calls 8

lengthMethod · 0.80
AssignDecimalStringMethod · 0.80
AssignUInt64Method · 0.80
fMethod · 0.80
MultiplyByPowerOfTenMethod · 0.80
eMethod · 0.80
CompareFunction · 0.50
ShiftLeftMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…