Team-Fly
Previous Section Next Section

B.4 Basic Operations: Friend Functions

const LINT
operator + (const LINT& a,
     const LINT& b);

addition c = a + b;

const LINT
operator - (const LINT& a,
     const LINT& b);

subtraction c = a b;

const LINT
operator * (const LINT& a,
     const LINT& b);

multiplication c = a * b;

const LINT
operator / (const LINT& a,
     const LINT& b);

division c = a / b;

const LINT
operator % (const LINT& a,
     const LINT& b);

remainder c = a % b;

const LINT
add (const LINT& a,
     const LINT& b);

addition c = add (a, b);

const LINT
sub (const LINT& a,
     const LINT& b);

subtraction c = sub (a, b);

const LINT
mul (const LINT& a,
     const LINT& b);

multiplication c = mul (a, b);

const LINT
sqr (const LINT& a);

squaring b = sqr (a);

const LINT
divr (const LINT& a,
    const LINT& b, LINT& r);

division with remainder quotient = div (dividend, divisor, remainder);


Team-Fly Previous Section Next Section