MPC(1)MPC(1)
NAME
mpc – extended precision arithmetic code generator
SYNOPSIS
DESCRIPTION
LANGUAGE
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:
name
(
mod
(
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:
addition.
subtraction.
multiplication.
division, or multiplicative inverse when enclosed in
division remainder.
exponentiation.
right shift by a constant.
left shift by a constant.
pick
Conditions can use the following operations:
equality.
inequality.
bigger than.
smaller than.
negation.