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

Skip to content

Commit 5af4e6c

Browse files
committed
Cautious introduction of a patch that started from
SF 560379: Karatsuba multiplication. Lots of things were changed from that. This needs a lot more testing, for correctness and speed, the latter especially when bit lengths are unbalanced. For now, the Karatsuba code gets invoked if and only if envar KARAT exists.
1 parent 5f7617b commit 5af4e6c

3 files changed

Lines changed: 272 additions & 88 deletions

File tree

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ Greg Couch
106106
Steve Cousins
107107
Alex Coventry
108108
Matthew Dixon Cowles
109+
Christopher A. Craig
109110
Drew Csillag
110111
Tom Culliton
111112
John Cugini

Misc/NEWS

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Type/class unification and new-style classes
66

77
Core and builtins
88

9+
- XXX Karatsuba multiplication. This is currently used if and only
10+
if envar KARAT exists. It needs more correctness and speed testing,
11+
the latter especially with unbalanced bit lengths.
12+
913
- u'%c' will now raise a ValueError in case the argument is an
1014
integer outside the valid range of Unicode code point ordinals.
1115

@@ -66,8 +70,8 @@ Core and builtins
6670
other platforms. KeyboardInterrupt can now reliably be caught,
6771
and Ctrl+C at an interative prompt no longer terminates the
6872
process under NT/2k/XP (it never did under Win9x). Ctrl+C will
69-
interrupt time.sleep() in the main thread, and any child processes
70-
created via the popen family (on win2k; we can't make win9x work
73+
interrupt time.sleep() in the main thread, and any child processes
74+
created via the popen family (on win2k; we can't make win9x work
7175
reliably) are also interrupted (as generally happens on for Linux/Unix.)
7276
[SF bugs 231273, 439992 and 581232]
7377

@@ -83,7 +87,7 @@ Core and builtins
8387
as directory names.
8488

8589
- The built-ins slice() and buffer() are now callable types. The
86-
types classobj (formerly class), code, function, instance, and
90+
0 types classobj (formerly class), code, function, instance, and
8791
instancemethod (formerly instance-method), which have no built-in
8892
names but are accessible through the types module, are now also
8993
callable. The type dict-proxy is renamed to dictproxy.

0 commit comments

Comments
 (0)