osprey-gcc-4.2.0/libdecnumber/decimal32.h File Reference

#include "decNumber.h"

Include dependency graph for decimal32.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Types

type  decimal32

Defines

#define DECIMAL32
#define DEC32NAME   "decimal32"
#define DEC32FULLNAME   "Decimal 32-bit Number"
#define DEC32AUTHOR   "Mike Cowlishaw"
#define DECIMAL32_Bytes   4
#define DECIMAL32_Pmax   7
#define DECIMAL32_Emax   96
#define DECIMAL32_Emin   -95
#define DECIMAL32_Bias   101
#define DECIMAL32_String   15
#define DECIMAL32_Ehigh   (DECIMAL32_Emax+DECIMAL32_Bias-DECIMAL32_Pmax+1)
#define DECNUMDIGITS   DECIMAL32_Pmax
#define DECIMAL_NaN   0x7c
#define DECIMAL_sNaN   0x7e
#define DECIMAL_Inf   0x78
#define decimal32Sign(d)   ((unsigned)(d)->bytes[0]>>7)
#define decimal32Comb(d)   (((d)->bytes[0] & 0x7c)>>2)
#define decimal32ExpCon(d)
#define decimal32SetSign(d, b)
#define decimal32SetExpCon(d, e)

Functions/Subroutines

decimal32decimal32FromString (decimal32 *, const char *, decContext *)
char * decimal32ToString (const decimal32 *, char *)
char * decimal32ToEngString (const decimal32 *, char *)
decimal32decimal32FromNumber (decimal32 *, const decNumber *, decContext *)
decNumberdecimal32ToNumber (const decimal32 *, decNumber *)


Define Documentation

#define DEC32AUTHOR   "Mike Cowlishaw"

Definition at line 35 of file decimal32.h.

#define DEC32FULLNAME   "Decimal 32-bit Number"

Definition at line 34 of file decimal32.h.

#define DEC32NAME   "decimal32"

Definition at line 33 of file decimal32.h.

#define DECIMAL32

Definition at line 32 of file decimal32.h.

#define DECIMAL32_Bias   101

Definition at line 42 of file decimal32.h.

Referenced by decimal32FromNumber(), and decimal32ToNumber().

#define DECIMAL32_Bytes   4

Definition at line 38 of file decimal32.h.

#define DECIMAL32_Ehigh   (DECIMAL32_Emax+DECIMAL32_Bias-DECIMAL32_Pmax+1)

Definition at line 45 of file decimal32.h.

Referenced by decimal32FromNumber().

#define DECIMAL32_Emax   96

Definition at line 40 of file decimal32.h.

Referenced by decimal32FromNumber().

#define DECIMAL32_Emin   -95

Definition at line 41 of file decimal32.h.

Referenced by decimal32FromNumber().

#define DECIMAL32_Pmax   7

Definition at line 39 of file decimal32.h.

Referenced by decimal32FromNumber(), and decimal32ToNumber().

#define DECIMAL32_String   15

Definition at line 43 of file decimal32.h.

#define decimal32Comb ( d   )     (((d)->bytes[0] & 0x7c)>>2)

Definition at line 74 of file decimal32.h.

#define decimal32ExpCon ( d   ) 

Value:

((((d)->bytes[0] & 0x03)<<4)         \
                               | ((unsigned)(d)->bytes[1]>>4))

Definition at line 77 of file decimal32.h.

Referenced by decimal32ToNumber().

#define decimal32SetExpCon ( d,
 ) 

Value:

{                                  \
    (d)->bytes[0]|=(uint8_t)((e)>>4);                                 \
    (d)->bytes[1]|=(uint8_t)(((e)&0x0F)<<4);}

Definition at line 87 of file decimal32.h.

Referenced by decimal32FromNumber().

#define decimal32SetSign ( d,
b   ) 

Value:

{                                    \
    (d)->bytes[0]|=((unsigned)(b)<<7);}

Definition at line 81 of file decimal32.h.

Referenced by decimal32FromNumber().

#define decimal32Sign ( d   )     ((unsigned)(d)->bytes[0]>>7)

Definition at line 71 of file decimal32.h.

Referenced by decimal32ToNumber().

#define DECIMAL_Inf   0x78

Definition at line 65 of file decimal32.h.

#define DECIMAL_NaN   0x7c

Definition at line 63 of file decimal32.h.

#define DECIMAL_sNaN   0x7e

Definition at line 64 of file decimal32.h.

#define DECNUMDIGITS   DECIMAL32_Pmax

Definition at line 48 of file decimal32.h.


Function Documentation

decimal32* decimal32FromNumber ( decimal32 ,
const decNumber ,
decContext  
)

decimal32* decimal32FromString ( decimal32 ,
const char *  ,
decContext  
)

char* decimal32ToEngString ( const decimal32 ,
char *   
)

Definition at line 276 of file decimal32.c.

References decimal32ToNumber(), and decNumberToEngString().

decNumber* decimal32ToNumber ( const decimal32 ,
decNumber  
)

char* decimal32ToString ( const decimal32 ,
char *   
)

Definition at line 267 of file decimal32.c.

References decimal32ToNumber(), and decNumberToString().


Generated on Wed Apr 8 14:19:23 2009 for Open64 by  doxygen 1.5.6