Skip to content

Commit 1cc6cf5

Browse files
authored
Revise reference for Mushtak and Lemire paper
Updated reference to include publication details and link.
1 parent f8c573d commit 1cc6cf5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

script/mushtak_lemire.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Reference :
3-
# Noble Mushtak and Daniel Lemire, Fast Number Parsing Without Fallback (to appear)
3+
# Noble Mushtak and Daniel Lemire, Fast Number Parsing Without Fallback, Software: Practice and Experience 53 (6), 2023 https://arxiv.org/abs/2212.06644
44
#
55

66
all_tqs = []
@@ -74,8 +74,8 @@ def convergents(cf):
7474
for _, w in convergents(continued_fraction(tq, 2 ** 137)):
7575
if w >= 2 ** 64:
7676
break
77-
if (tq * w) % 2 ** 137 > 2 ** 137 - 2 ** 64:
78-
print(f"SOLUTION: q={j-342} T[q]={tq} w={w}")
79-
found_solution = True
77+
if (tq * w) % 2 ** 137 > 2 ** 137 - 2 ** 64:
78+
print(f"SOLUTION: q={j-342} T[q]={tq} w={w}")
79+
found_solution = True
8080
if not found_solution:
8181
print("No solutions!")

0 commit comments

Comments
 (0)