Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
cba6e969
Commit
cba6e969
authored
Aug 13, 2002
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed error in new comment.
parent
d6974a54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Objects/longobject.c
Objects/longobject.c
+3
-4
No files found.
Objects/longobject.c
View file @
cba6e969
...
...
@@ -1786,12 +1786,11 @@ least 2*shift+2 digits, and there's not obviously enough room for the
extra two bits. We need a sharper analysis in this case. The major
laziness was in the "the same is true of ah+al" clause: ah+al can't actually
have shift+1 digits + 1 bit unless bsize is odd and asize == bsize. In that
case, we actually have (2*shift+1)*2 - shift = 3*shift
+
2 allocated digits
remaining, and that's obviously plenty to hold 2*shift
+
2 digits + 2 bits.
case, we actually have (2*shift+1)*2 - shift = 3*shift
+
2 allocated digits
remaining, and that's obviously plenty to hold 2*shift
+
2 digits + 2 bits.
Else (bsize is odd and asize < bsize) ah and al each have at most shift digits,
so ah+al has at most shift digits + 1 bit, and (ah+al)*(bh+bl) has at most
2*shift+1 digits + 2 bits, and again 2*shift+2 digits + 2 bits is
enough to hold it.
2*shift+1 digits + 2 bits, and again 2*shift+2 digits is enough to hold it.
*/
/* b has at least twice the digits of a, and a is big enough that Karatsuba
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment