AtofNative is a slow fallback algorithms.
| 1346 | |
| 1347 | // AtofNative is a slow fallback algorithms. |
| 1348 | static sonic_force_inline double AtofNative(const char *buf, int len) { |
| 1349 | Decimal d; |
| 1350 | double val = 0; |
| 1351 | SetDecimal(&d, buf, len); |
| 1352 | DecimalToF64(&d, &val); |
| 1353 | return val; |
| 1354 | } |
| 1355 | |
| 1356 | #undef DECIMAL_MAX_DNUM |
| 1357 | #undef MAX_SHIFT |