B.4 Basic Operations: Friend Functions

Team-Fly

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


Cryptography in C and C++
Cryptography in C and C++
ISBN: 189311595X
EAN: 2147483647
Year: 2001
Pages: 127

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net