parrotcode: Python BigInt PMC class | |
Contents | Dynamic PMCs |
classes/pylong.pmc - Python BigInt PMC class
PyLong
provides arbitray precision integer mathematic functions.
static void bigint_set_long(Interp*, PMC*, long value)
static void bigint_set_double(Interp*, PMC*, double value)
PMC* "__hex__"(PMC *self)
self
.PMC* "__new__"(PMC *class, PMC *value, PMC *base)
void add(PMC *value, PMC *dest)
*value
to the integer and returns the result in *dest
.PMC *get_class()
INTVAL is_equal (PMC *value)
==
operation.void morph(INTVAL type)
void multiply(PMC *value, PMC *dest)
*value
with the integer and returns the result in *dest
.INTVAL hash()
|