We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8b044c commit 3f9e1e7Copy full SHA for 3f9e1e7
Tools/scripts/long_conv_tables.py
@@ -19,7 +19,6 @@ def format_array(name, values):
19
20
21
def conv_tables(long_bits):
22
- steps = 0
23
PyLong_BASE = 1 << long_bits
24
log_base_BASE = [0.0] * 37
25
convmultmax_base = [0] * 37
@@ -29,7 +28,6 @@ def conv_tables(long_bits):
29
28
i = 1
30
log_base_BASE[base] = math.log(float(base)) / math.log(PyLong_BASE)
31
while True:
32
- steps += 1
33
next = convmax * base
34
if next > PyLong_BASE:
35
break
@@ -38,7 +36,6 @@ def conv_tables(long_bits):
38
36
convmultmax_base[base] = convmax
39
37
assert i > 0
40
convwidth_base[base] = i
41
- # print('steps', steps)
42
return '\n'.join(
43
[
44
format_array('static const double log_base_BASE[37]', log_base_BASE),
0 commit comments