LibreOffice Module tools (master) 1
Functions | Variables
bigint.cxx File Reference
#include <math.h>
#include <osl/diagnose.h>
#include <tools/bigint.hxx>
#include <algorithm>
#include <string.h>
Include dependency graph for bigint.cxx:

Go to the source code of this file.

Functions

bool operator== (const BigInt &rVal1, const BigInt &rVal2)
 
bool operator< (const BigInt &rVal1, const BigInt &rVal2)
 

Variables

const sal_Int32 MY_MAXLONG = 0x3fffffff
 The range in which we can perform add/sub without fear of overflow. More...
 
const sal_Int32 MY_MINLONG = -MY_MAXLONG
 

Function Documentation

◆ operator<()

bool operator< ( const BigInt rVal1,
const BigInt rVal2 
)

Definition at line 818 of file bigint.cxx.

◆ operator==()

bool operator== ( const BigInt rVal1,
const BigInt rVal2 
)

Definition at line 806 of file bigint.cxx.

Variable Documentation

◆ MY_MAXLONG

const sal_Int32 MY_MAXLONG = 0x3fffffff

The range in which we can perform add/sub without fear of overflow.

Definition at line 31 of file bigint.cxx.

Referenced by BigInt::operator+=(), and BigInt::operator-=().

◆ MY_MINLONG

const sal_Int32 MY_MINLONG = -MY_MAXLONG

Definition at line 32 of file bigint.cxx.

Referenced by BigInt::operator+=(), and BigInt::operator-=().