mpc – extended precision arithmetic code generator
The language consists of a series of function definitions of the form:
All variables and parameters are extended precision integers and are passed by reference. Statements are separated by semicolon and the following statemens are defined:
There is no distinction between input and output parameters, but
conventionally, the outputs are put at the end of the
Expressions are composed out of the following arithmetic operations:
division, or multiplicative inverse when enclosed in
right shift by a constant.
left shift by a constant.
Conditions can use the following operations: