| 82 | // Return 10**exp, with a fast lookup if possible |
| 83 | template <typename Real> |
| 84 | static Real LargePowerOfTen(int32_t exp) { |
| 85 | constexpr int N = kPrecomputedPowersOfTen; |
| 86 | if (ARROW_PREDICT_TRUE(exp >= -N && exp <= N)) { |
| 87 | return RealTraits<Real>::powers_of_ten()[exp + N]; |
| 88 | } else { |
| 89 | return std::pow(static_cast<Real>(10), static_cast<Real>(exp)); |
| 90 | } |
| 91 | } |
| 92 | }; |
| 93 | |
| 94 | template <typename DecimalType, typename Derived> |
nothing calls this directly
no outgoing calls
no test coverage detected