parrotcode: BigInt PMC class | |
Contents | PMCs |
src/classes/bigint.pmc - BigInt PMC class
BigInt
provides arbitrary precision integer mathematic functions.
static void bigint_set_long(Interp*, PMC*, long value)
static void bigint_set_double(Interp*, PMC*, double value)
PMC *instantiate()
void set_integer_native(INTVAL value)
void set_number_native(FLOATVAL value)
value
.void set_string_native(STRING *value)
*value
to a number.void set_string_keyed_int(INTVAL base, STRING *value)
base
.void set_pmc(PMC *value)
*value
.FLOATVAL get_number()
INTVAL get_integer()
PMC *get_bignum()
INTVAL get_bool()
STRING *get_string()
STRING *get_string_keyed_int(INTVAL base)
base
.STRING *get_repr()
void increment()
void decrement()
PMC *absolute(PMC *dest)
void i_absolute()
dest
to the absolute value of SELF.PMC *neg(PMC *dest)
void i_neg()
dest
to the negated value of SELF
.PMC *bitwise_shl(PMC *value, PMC *dest)
PMC *bitwise_shl_int(INTVAL value, PMC *dest)
*dest
the shift left of the BigInt by *value
.void i_bitwise_shl(PMC *value)
void i_bitwise_shl_int(INTVAL value)
PMC *bitwise_shr(PMC *value, PMC *dest)
PMC *bitwise_shr_int(INTVAL value, PMC *dest)
*dest
the shift right of the BigInt by *value
.void i_bitwise_shr(PMC *value)
void i_bitwise_shr_int(INTVAL value)
|