itom, madd, msub, mult, mdiv, min, mout,
pow, gcd, rpow \- multiple precision integer arithmetic
.B "typedef struct { int len; short *val; } mint;"
.B mint *a, *b, *c, *m, "*q, *r;"
These routines perform arithmetic on integers of
The integers are stored using the defined type
should be initialized using the function
which sets the initial value to
After that space is managed automatically by the routines.
.IR madd , " msub" , " mult" ,
assign to their third arguments the sum, difference, and
product, respectively, of their first two arguments.
assigns the quotient and remainder, respectively,
to its third and fourth arguments.
except that the divisor is an ordinary integer.
produces the square root and remainder of its first argument.
calculates this reduced modulo
do decimal input and output.
The functions are obtained with the
Illegal operations and running out of memory
produce messages and core images.