MCPcopy Create free account
hub / github.com/cockroachdb/apd / tableExp10

Function tableExp10

table.go:132–138  ·  view source on GitHub ↗

tableExp10 returns 10^x for x >= 0, looked up from a table when possible. This returned value must not be mutated. tmp is used as an intermediate variable and must not be nil.

(x int64, tmp *BigInt)

Source from the content-addressed store, hash-verified

130// possible. This returned value must not be mutated. tmp is used as an
131// intermediate variable and must not be nil.
132func tableExp10(x int64, tmp *BigInt) *BigInt {
133 if x <= powerTenTableSize {
134 return &pow10LookupTable[x]
135 }
136 setBigWithPow(tmp, x)
137 return tmp
138}

Callers 9

TestTableExp10Function · 0.85
RoundMethod · 0.85
NumDigitsFunction · 0.85
QuoMethod · 0.85
quantizeMethod · 0.85
exp10Function · 0.85
upscaleFunction · 0.85
CmpMethod · 0.85
ModfMethod · 0.85

Calls 1

setBigWithPowFunction · 0.85

Tested by 1

TestTableExp10Function · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…