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