Commit 0db375b
gh-NNNN: Remove _Py_dg_strtod() from dtoa.c
_Py_dg_strtod() and its helper functions (s2b, hi0bits used only by
s2b, b2d, sd2b, ratio, BCinfo, sulp, bigcomp, plus the tens/bigtens
tables used only by strtod) are removed — 1075 net lines deleted.
String-to-double conversion is now handled by _PyWuffs_strtod() (added
in the previous commit) which combines the Eisel-Lemire fast path with
Wuffs's High Precision Decimal fallback for 100% correct rounding.
The Bigint infrastructure (Balloc, Bfree, multadd, mult, lshift, diff,
cmp, pow5mult, i2b) and the functions still needed by _Py_dg_dtoa
(hi0bits, lo0bits, d2b, tens, bigtens, dshift, quorem) are retained.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 2f21cac commit 0db375b
File tree
3 files changed
+78
-1153
lines changed- Include/internal
- Python
3 files changed
+78
-1153
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
0 commit comments