Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e417de0

Browse files
committed
Illustrating by example one good reason not to trust a proof <wink>.
1 parent ab86c2b commit e417de0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Objects/longobject.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,9 +1791,9 @@ then we're asking whether asize digits >= f(bsize/2) digits + 2 bits. By #4,
17911791
asize is at least f(bsize/2)+1 digits, so this in turn reduces to whether 1
17921792
digit is enough to hold 2 bits. This is so since SHIFT=15 >= 2. If
17931793
asize == bsize, then we're asking whether bsize digits is enough to hold
1794-
f(bsize/2) digits + 2 bits, or equivalently (by #1) whether c(bsize/2) digits
1795-
is enough to hold 2 bits. This is so if bsize >= 1, which holds because
1796-
bsize >= KARATSUBA_CUTOFF >= 1.
1794+
c(bsize/2) digits + 2 bits, or equivalently (by #1) whether f(bsize/2) digits
1795+
is enough to hold 2 bits. This is so if bsize >= 2, which holds because
1796+
bsize >= KARATSUBA_CUTOFF >= 2.
17971797
17981798
Note that since there's always enough room for (ah+al)*(bh+bl), and that's
17991799
clearly >= each of ah*bh and al*bl, there's always enough room to subtract

0 commit comments

Comments
 (0)