mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
k_mul(): Repaired typo in comment.
This commit is contained in:
parent
5af4e6c739
commit
18c15b9bbd
1 changed files with 1 additions and 1 deletions
|
@ -1562,7 +1562,7 @@ k_mul(PyLongObject *a, PyLongObject *b)
|
|||
/* (ah*X+al)(bh*X+bl) = ah*bh*X*X + (ah*bl + al*bh)*X + al*bl
|
||||
* Let k = (ah+al)*(bh+bl) = ah*bl + al*bh + ah*bh + al*bl
|
||||
* Then the original product is
|
||||
* ah*bh*X*X + (k - ah*bh - ah*bl)*X + al*bl
|
||||
* ah*bh*X*X + (k - ah*bh - al*bl)*X + al*bl
|
||||
* By picking X to be a power of 2, "*X" is just shifting, and it's
|
||||
* been reduced to 3 multiplies on numbers half the size.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue