diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-12-07 22:56:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-07 22:56:31 (GMT) |
commit | 91a8e002c21a5388c5152c5a4871b9a2d85f0fc1 (patch) | |
tree | e6be380d88efc246ca7b4f864a67fc541a62b861 /Python/dtoa.c | |
parent | d47ffeb9e35dbc7264ffa12fddaa6e0d3ba767a4 (diff) | |
download | cpython-91a8e002c21a5388c5152c5a4871b9a2d85f0fc1.zip cpython-91a8e002c21a5388c5152c5a4871b9a2d85f0fc1.tar.gz cpython-91a8e002c21a5388c5152c5a4871b9a2d85f0fc1.tar.bz2 |
gh-81057: Move More Globals to _PyRuntimeState (gh-100092)
https://github.com/python/cpython/issues/81057
Diffstat (limited to 'Python/dtoa.c')
-rw-r--r-- | Python/dtoa.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Python/dtoa.c b/Python/dtoa.c index 1b47d83..cff5f1b 100644 --- a/Python/dtoa.c +++ b/Python/dtoa.c @@ -673,10 +673,6 @@ mult(Bigint *a, Bigint *b) #ifndef Py_USING_MEMORY_DEBUGGER -/* p5s is a linked list of powers of 5 of the form 5**(2**i), i >= 2 */ - -static Bigint *p5s; - /* multiply the Bigint b by 5**k. Returns a pointer to the result, or NULL on failure; if the returned pointer is distinct from b then the original Bigint b will have been Bfree'd. Ignores the sign of b. */ @@ -696,7 +692,7 @@ pow5mult(Bigint *b, int k) if (!(k >>= 2)) return b; - p5 = p5s; + p5 = _PyRuntime.dtoa.p5s; if (!p5) { /* first time */ p5 = i2b(625); @@ -704,7 +700,7 @@ pow5mult(Bigint *b, int k) Bfree(b); return NULL; } - p5s = p5; + _PyRuntime.dtoa.p5s = p5; p5->next = 0; } for(;;) { |