NAME ^

classes/pylong.pmc - Python BigInt PMC class

DESCRIPTION ^

PyLong provides arbitray precision integer mathematic functions.

Functions ^

static void bigint_set_long(Interp*, PMC*, long value)

static void bigint_set_double(Interp*, PMC*, double value)

PMC* "__hex__"(PMC *self)

Returns the hex representation of self.

PMC* "__new__"(PMC *class, PMC *value, PMC *base)

Create a new long.

void add(PMC *value, PMC *dest)

Add *value to the integer and returns the result in *dest.

PMC *get_class()

Return the class of this object.

INTVAL is_equal (PMC *value)

The == operation.

void morph(INTVAL type)

Morphs the scalar to the specified type.

void multiply(PMC *value, PMC *dest)

Multiplies *value with the integer and returns the result in *dest.

INTVAL hash()

Returns a unique hash for this value


parrot