SpeedCrunch  0.11
Classes | Defines | Typedefs | Functions | Variables
/usr/src/RPM/BUILD/speedcrunch-0.11/src/math/hmath.cpp File Reference
#include "math/hmath.h"
#include "math/floatcommon.h"
#include "math/floatconst.h"
#include "math/floatconvert.h"
#include "math/floathmath.h"
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
Include dependency graph for hmath.cpp:

Classes

class  HNumberPrivate
struct  MathInit

Defines

#define HMATH_WORKING_PREC   (DECPRECISION + 3)
#define HMATH_EVAL_PREC   (HMATH_WORKING_PREC + 2)
#define HMATH_MAX_SHOWN   20
#define HMATH_BIN_MAX_SHOWN   ((33219*HMATH_MAX_SHOWN)/10000 + 1)
#define HMATH_OCT_MAX_SHOWN   ((11073*HMATH_MAX_SHOWN)/10000 + 1)
#define HMATH_HEX_MAX_SHOWN   ((8305*HMATH_MAX_SHOWN)/10000 + 1)

Typedefs

typedef char(* Float1ArgND )(floatnum x)
typedef char(* Float1Arg )(floatnum x, int digits)
typedef char(* Float2ArgsND )(floatnum result, cfloatnum p1, cfloatnum p2)
typedef char(* Float2Args )(floatnum result, cfloatnum p1, cfloatnum p2, int digits)

Functions

void roundSetError (HNumberPrivate *dest)
void call2Args (HNumberPrivate *dest, HNumberPrivate *n1, HNumberPrivate *n2, Float2Args func)
void call2ArgsND (HNumberPrivate *dest, HNumberPrivate *n1, HNumberPrivate *n2, Float2ArgsND func)
void call1Arg (HNumberPrivate *dest, HNumberPrivate *n, Float1Arg func)
void call1ArgPoleCheck (HNumberPrivate *dest, HNumberPrivate *n, Float1Arg func)
void call1ArgND (HNumberPrivate *dest, HNumberPrivate *n, Float1ArgND func)
char idivwrap (floatnum result, cfloatnum p1, cfloatnum p2)
HNumber operator- (const HNumber &n1, const HNumber &n2)
bool operator> (const HNumber &l, const HNumber &r)
bool operator< (const HNumber &l, const HNumber &r)
bool operator>= (const HNumber &l, const HNumber &r)
bool operator<= (const HNumber &l, const HNumber &r)
bool operator== (const HNumber &l, const HNumber &r)
bool operator!= (const HNumber &l, const HNumber &r)
HNumber operator- (const HNumber &x)
std::ostream & operator<< (std::ostream &s, const HNumber &n)

Variables

MathInit mathinit

Define Documentation

#define HMATH_BIN_MAX_SHOWN   ((33219*HMATH_MAX_SHOWN)/10000 + 1)
#define HMATH_EVAL_PREC   (HMATH_WORKING_PREC + 2)
#define HMATH_HEX_MAX_SHOWN   ((8305*HMATH_MAX_SHOWN)/10000 + 1)
#define HMATH_MAX_SHOWN   20
#define HMATH_OCT_MAX_SHOWN   ((11073*HMATH_MAX_SHOWN)/10000 + 1)
#define HMATH_WORKING_PREC   (DECPRECISION + 3)

Typedef Documentation

typedef char(* Float1Arg)(floatnum x, int digits)
typedef char(* Float1ArgND)(floatnum x)
typedef char(* Float2Args)(floatnum result, cfloatnum p1, cfloatnum p2, int digits)
typedef char(* Float2ArgsND)(floatnum result, cfloatnum p1, cfloatnum p2)

Function Documentation

void call1Arg ( HNumberPrivate dest,
HNumberPrivate n,
Float1Arg  func 
)
void call1ArgND ( HNumberPrivate dest,
HNumberPrivate n,
Float1ArgND  func 
)
void call1ArgPoleCheck ( HNumberPrivate dest,
HNumberPrivate n,
Float1Arg  func 
)
void call2Args ( HNumberPrivate dest,
HNumberPrivate n1,
HNumberPrivate n2,
Float2Args  func 
)
void call2ArgsND ( HNumberPrivate dest,
HNumberPrivate n1,
HNumberPrivate n2,
Float2ArgsND  func 
)
char idivwrap ( floatnum  result,
cfloatnum  p1,
cfloatnum  p2 
)
bool operator!= ( const HNumber l,
const HNumber r 
)

Returns true if l is not equal to r.

HNumber operator- ( const HNumber n1,
const HNumber n2 
)

Subtract from another number.

HNumber operator- ( const HNumber x)

Changes the sign.

bool operator< ( const HNumber l,
const HNumber r 
)

Returns true if l is less than r.

std::ostream& operator<< ( std::ostream &  s,
const HNumber n 
)
bool operator<= ( const HNumber l,
const HNumber r 
)

Returns true if l is less than or equal to r.

bool operator== ( const HNumber l,
const HNumber r 
)

Returns true if l is equal to r.

bool operator> ( const HNumber l,
const HNumber r 
)

Returns true if l is greater than r.

bool operator>= ( const HNumber l,
const HNumber r 
)

Returns true if l is greater than or equal to r.

void roundSetError ( HNumberPrivate dest)

Variable Documentation