// File: bimath.h // // Header file for functions that are eventually implemented // in assembly language #ifndef _bimath_h #define _bimath_h // // Arithmetic operations // // sum = addend1 + addend2 // void BI_Add(BigInt& sum, const BigInt& addend1, const BigInt& addend2) ; // difference = minuend - subtrahend // void BI_Sub(BigInt& diff, const BigInt& minuend, const BigInt& subtrahend) ; // product = factor1 * factor 2 // void BI_Mul(BigInt& product, const BigInt& factor1, const BigInt& factor2) ; // quotient = dividend / divisor ; // remainder = dividend % divisor ; // void BI_Div(BigInt& quotient, BigInt& remainder, const BigInt& dividend, const BigInt& factor2) ; // // Comparison operation // // lt = A < B ? 1 : 0 ; // eq = A === B ? 1 : 0 ; void BI_Comp(int& lt, int& eq, const BigInt& A, const BigInt& B) ; #endif