mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
* Objects/{int,long,float}object.c, Include/object.h,
Python/bltinmodule.c: mods by Andrew Kuchling to implement pow(x,y,z) == pow(x,y)%z, but without incurring overflow
This commit is contained in:
parent
fba65fe134
commit
75abc6392b
1 changed files with 2 additions and 1 deletions
|
|
@ -135,6 +135,7 @@ method blocks.
|
|||
|
||||
typedef object * (*unaryfunc) PROTO((object *));
|
||||
typedef object * (*binaryfunc) PROTO((object *, object *));
|
||||
typedef object * (*ternaryfunc) PROTO((object *, object *, object *));
|
||||
typedef int (*inquiry) PROTO((object *));
|
||||
typedef int (*coercion) PROTO((object **, object **));
|
||||
typedef object *(*intargfunc) PROTO((object *, int));
|
||||
|
|
@ -150,7 +151,7 @@ typedef struct {
|
|||
binaryfunc nb_divide;
|
||||
binaryfunc nb_remainder;
|
||||
binaryfunc nb_divmod;
|
||||
binaryfunc nb_power;
|
||||
ternaryfunc nb_power;
|
||||
unaryfunc nb_negative;
|
||||
unaryfunc nb_positive;
|
||||
unaryfunc nb_absolute;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue