diff options
author | Guido van Rossum <guido@python.org> | 1991-05-14 12:06:16 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-05-14 12:06:16 (GMT) |
commit | badb116f5ea15acf9ebec16c5a0d712e7af23a48 (patch) | |
tree | ba0114d40f138e99a05fb9bd67aa15e6298eeeca | |
parent | 0bff015ac304fcfd316d2c63c0532471250691e6 (diff) | |
download | cpython-badb116f5ea15acf9ebec16c5a0d712e7af23a48.zip cpython-badb116f5ea15acf9ebec16c5a0d712e7af23a48.tar.gz cpython-badb116f5ea15acf9ebec16c5a0d712e7af23a48.tar.bz2 |
Added wdigit and stwodigits typedefs, and changed prototypes.
-rw-r--r-- | Include/longintrepr.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Include/longintrepr.h b/Include/longintrepr.h index 4184f8a..c15eaa4 100644 --- a/Include/longintrepr.h +++ b/Include/longintrepr.h @@ -33,7 +33,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. And, at some places it is assumed that MASK fits in an int, as well. */ typedef unsigned short digit; +typedef unsigned int wdigit; /* digit widened to parameter size */ typedef unsigned long twodigits; +typedef long stwodigits; /* signed variant of twodigits */ #define SHIFT 15 #define BASE ((digit)1 << SHIFT) @@ -61,9 +63,6 @@ typedef struct { /* Internal use only */ longobject *alloclongobject PROTO((int)); longobject *long_normalize PROTO((longobject *)); -longobject *mul1 PROTO((longobject *, digit)); -longobject *muladd1 PROTO((longobject *, digit, digit)); -longobject *divrem1 PROTO((longobject *, digit, digit *)); - -/* Check for interrupts during operations on long ints >= this size */ -#define INTRLIMIT 20 +longobject *mul1 PROTO((longobject *, wdigit)); +longobject *muladd1 PROTO((longobject *, wdigit, wdigit)); +longobject *divrem1 PROTO((longobject *, wdigit, digit *)); |