| 157 | })(); |
| 158 | |
| 159 | static int256_t GetScaleMultiplier(int scale) { |
| 160 | DCHECK_GE(scale, 0); |
| 161 | DCHECK_LE(scale, kMaxLargeScale); |
| 162 | |
| 163 | return kLargeScaleMultipliers[scale]; |
| 164 | } |
| 165 | |
| 166 | // divide input by 10^reduce_by, and round up the fractional part. |
| 167 | static int256_t ReduceScaleBy(int256_t in, int32_t reduce_by) { |
no outgoing calls