HPGCC3 Documentation 3.0 R003

decNumber.h File Reference

#include "decContext.h"

Go to the source code of this file.

Data Structures

struct  decNumber

Defines

#define DECNAME   "decNumber"
#define DECFULLNAME   "Decimal Number Module"
#define DECAUTHOR   "Mike Cowlishaw"
#define DECNEG   0x80
#define DECINF   0x40
#define DECNAN   0x20
#define DECSNAN   0x10
#define DECSPECIAL   (DECINF|DECNAN|DECSNAN)
#define DECDPUN   4
#define DECNUMDIGITS   32
#define decNumberUnit   uint16_t
#define DECNUMUNITS   ((DECNUMDIGITS+DECDPUN-1)/DECDPUN)
#define decNumberIsCanonical(dn)   (1)
#define decNumberIsFinite(dn)   (((dn)->bits&DECSPECIAL)==0)
#define decNumberIsInfinite(dn)   (((dn)->bits&DECINF)!=0)
#define decNumberIsNaN(dn)   (((dn)->bits&(DECNAN|DECSNAN))!=0)
#define decNumberIsNegative(dn)   (((dn)->bits&DECNEG)!=0)
#define decNumberIsQNaN(dn)   (((dn)->bits&(DECNAN))!=0)
#define decNumberIsSNaN(dn)   (((dn)->bits&(DECSNAN))!=0)
#define decNumberIsSpecial(dn)   (((dn)->bits&DECSPECIAL)!=0)
#define decNumberIsZero(dn)
#define decNumberRadix(dn)   (10)

Functions

decNumberdecNumberFromInt32 (decNumber *, int32_t)
decNumberdecNumberFromUInt32 (decNumber *, uint32_t)
decNumberdecNumberFromString (decNumber *, const char *, decContext *)
char * decNumberToString (const decNumber *, char *)
char * decNumberToEngString (const decNumber *, char *)
uint32_t decNumberToUInt32 (const decNumber *, decContext *)
int32_t decNumberToInt32 (const decNumber *, decContext *)
uint8_tdecNumberGetBCD (const decNumber *, uint8_t *)
decNumberdecNumberSetBCD (decNumber *, const uint8_t *, uint32_t)
decNumberdecNumberAbs (decNumber *, const decNumber *, decContext *)
decNumberdecNumberAdd (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberAnd (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberCompare (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberCompareSignal (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberCompareTotal (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberCompareTotalMag (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberDivide (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberDivideInteger (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberExp (decNumber *, const decNumber *, decContext *)
decNumberdecNumberFMA (decNumber *, const decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberInvert (decNumber *, const decNumber *, decContext *)
decNumberdecNumberLn (decNumber *, const decNumber *, decContext *)
decNumberdecNumberLogB (decNumber *, const decNumber *, decContext *)
decNumberdecNumberLog10 (decNumber *, const decNumber *, decContext *)
decNumberdecNumberMax (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberMaxMag (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberMin (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberMinMag (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberMinus (decNumber *, const decNumber *, decContext *)
decNumberdecNumberMultiply (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberNormalize (decNumber *, const decNumber *, decContext *)
decNumberdecNumberOr (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberPlus (decNumber *, const decNumber *, decContext *)
decNumberdecNumberPower (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberQuantize (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberReduce (decNumber *, const decNumber *, decContext *)
decNumberdecNumberRemainder (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberRemainderNear (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberRescale (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberRotate (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberSameQuantum (decNumber *, const decNumber *, const decNumber *)
decNumberdecNumberScaleB (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberShift (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberSquareRoot (decNumber *, const decNumber *, decContext *)
decNumberdecNumberSubtract (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberToIntegralExact (decNumber *, const decNumber *, decContext *)
decNumberdecNumberToIntegralValue (decNumber *, const decNumber *, decContext *)
decNumberdecNumberXor (decNumber *, const decNumber *, const decNumber *, decContext *)
enum decClass decNumberClass (const decNumber *, decContext *)
const char * decNumberClassToString (enum decClass)
decNumberdecNumberCopy (decNumber *, const decNumber *)
decNumberdecNumberCopyAbs (decNumber *, const decNumber *)
decNumberdecNumberCopyNegate (decNumber *, const decNumber *)
decNumberdecNumberCopySign (decNumber *, const decNumber *, const decNumber *)
decNumberdecNumberNextMinus (decNumber *, const decNumber *, decContext *)
decNumberdecNumberNextPlus (decNumber *, const decNumber *, decContext *)
decNumberdecNumberNextToward (decNumber *, const decNumber *, const decNumber *, decContext *)
decNumberdecNumberTrim (decNumber *)
const char * decNumberVersion (void)
decNumberdecNumberZero (decNumber *)
int32_t decNumberIsNormal (const decNumber *, decContext *)
int32_t decNumberIsSubnormal (const decNumber *, decContext *)

Define Documentation

#define DECAUTHOR   "Mike Cowlishaw"

Definition at line 24 of file decNumber.h.

#define DECDPUN   4

Definition at line 43 of file decNumber.h.

#define DECFULLNAME   "Decimal Number Module"

Definition at line 23 of file decNumber.h.

#define DECINF   0x40

Definition at line 32 of file decNumber.h.

#define DECNAME   "decNumber"

Definition at line 22 of file decNumber.h.

#define DECNAN   0x20

Definition at line 33 of file decNumber.h.

#define DECNEG   0x80

Definition at line 31 of file decNumber.h.

#define decNumberIsCanonical (   dn)    (1)

Definition at line 169 of file decNumber.h.

#define decNumberIsFinite (   dn)    (((dn)->bits&DECSPECIAL)==0)

Definition at line 170 of file decNumber.h.

#define decNumberIsInfinite (   dn)    (((dn)->bits&DECINF)!=0)

Definition at line 171 of file decNumber.h.

#define decNumberIsNaN (   dn)    (((dn)->bits&(DECNAN|DECSNAN))!=0)

Definition at line 172 of file decNumber.h.

#define decNumberIsNegative (   dn)    (((dn)->bits&DECNEG)!=0)

Definition at line 173 of file decNumber.h.

#define decNumberIsQNaN (   dn)    (((dn)->bits&(DECNAN))!=0)

Definition at line 174 of file decNumber.h.

#define decNumberIsSNaN (   dn)    (((dn)->bits&(DECSNAN))!=0)

Definition at line 175 of file decNumber.h.

#define decNumberIsSpecial (   dn)    (((dn)->bits&DECSPECIAL)!=0)

Definition at line 176 of file decNumber.h.

#define decNumberIsZero (   dn)
Value:
(*(dn)->lsu==0 \
                                    && (dn)->digits==1 \
                                    && (((dn)->bits&DECSPECIAL)==0))

Definition at line 177 of file decNumber.h.

#define decNumberRadix (   dn)    (10)

Definition at line 180 of file decNumber.h.

#define decNumberUnit   uint16_t

Definition at line 59 of file decNumber.h.

#define DECNUMDIGITS   32

Definition at line 51 of file decNumber.h.

#define DECNUMUNITS   ((DECNUMDIGITS+DECDPUN-1)/DECDPUN)

Definition at line 64 of file decNumber.h.

#define DECSNAN   0x10

Definition at line 34 of file decNumber.h.

#define DECSPECIAL   (DECINF|DECNAN|DECSNAN)

Definition at line 36 of file decNumber.h.


Function Documentation

decNumber* decNumberAbs ( decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberAdd ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberAnd ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
enum decClass decNumberClass ( const decNumber ,
decContext  
)
const char* decNumberClassToString ( enum  decClass)
decNumber* decNumberCompare ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberCompareSignal ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberCompareTotal ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberCompareTotalMag ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberCopy ( decNumber ,
const decNumber  
)
decNumber* decNumberCopyAbs ( decNumber ,
const decNumber  
)
decNumber* decNumberCopyNegate ( decNumber ,
const decNumber  
)
decNumber* decNumberCopySign ( decNumber ,
const decNumber ,
const decNumber  
)
decNumber* decNumberDivide ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberDivideInteger ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberExp ( decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberFMA ( decNumber ,
const decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberFromInt32 ( decNumber ,
int32_t   
)
decNumber* decNumberFromString ( decNumber ,
const char *  ,
decContext  
)
decNumber* decNumberFromUInt32 ( decNumber ,
uint32_t   
)
uint8_t* decNumberGetBCD ( const decNumber ,
uint8_t  
)
decNumber* decNumberInvert ( decNumber ,
const decNumber ,
decContext  
)
int32_t decNumberIsNormal ( const decNumber ,
decContext  
)
int32_t decNumberIsSubnormal ( const decNumber ,
decContext  
)
decNumber* decNumberLn ( decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberLog10 ( decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberLogB ( decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberMax ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberMaxMag ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberMin ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberMinMag ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberMinus ( decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberMultiply ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberNextMinus ( decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberNextPlus ( decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberNextToward ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberNormalize ( decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberOr ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberPlus ( decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberPower ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberQuantize ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberReduce ( decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberRemainder ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberRemainderNear ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberRescale ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberRotate ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberSameQuantum ( decNumber ,
const decNumber ,
const decNumber  
)
decNumber* decNumberScaleB ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberSetBCD ( decNumber ,
const uint8_t ,
uint32_t   
)
decNumber* decNumberShift ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberSquareRoot ( decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberSubtract ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
char* decNumberToEngString ( const decNumber ,
char *   
)
int32_t decNumberToInt32 ( const decNumber ,
decContext  
)
decNumber* decNumberToIntegralExact ( decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberToIntegralValue ( decNumber ,
const decNumber ,
decContext  
)
char* decNumberToString ( const decNumber ,
char *   
)
uint32_t decNumberToUInt32 ( const decNumber ,
decContext  
)
decNumber* decNumberTrim ( decNumber )
const char* decNumberVersion ( void  )
decNumber* decNumberXor ( decNumber ,
const decNumber ,
const decNumber ,
decContext  
)
decNumber* decNumberZero ( decNumber )