HPGCC3 Documentation 3.0 R003

decSingle.h File Reference

#include "decContext.h"
#include "decQuad.h"
#include "decDouble.h"

Go to the source code of this file.

Data Structures

struct  decSingle

Defines

#define DECSINGLENAME   "decSingle"
#define DECSINGLETITLE   "Decimal 32-bit datum"
#define DECSINGLEAUTHOR   "Mike Cowlishaw"
#define DECSINGLE_Bytes   4
#define DECSINGLE_Pmax   7
#define DECSINGLE_Emin   -95
#define DECSINGLE_Emax   96
#define DECSINGLE_EmaxD   3
#define DECSINGLE_Bias   101
#define DECSINGLE_String   16
#define DECSINGLE_EconL   6
#define DECSINGLE_Declets   2
#define DECSINGLE_Ehigh   (DECSINGLE_Emax + DECSINGLE_Bias - (DECSINGLE_Pmax-1))
#define decSingleToNumber(dq, dn)   decimal32ToNumber((decimal32 *)(dq), dn)
#define decSingleFromNumber(dq, dn, set)   (decSingle *)decimal32FromNumber((decimal32 *)(dq), dn, set)

Functions

decSingledecSingleFromBCD (decSingle *, int32_t, const uint8_t *, int32_t)
decSingledecSingleFromPacked (decSingle *, int32_t, const uint8_t *)
decSingledecSingleFromString (decSingle *, const char *, decContext *)
decSingledecSingleFromWider (decSingle *, const decDouble *, decContext *)
int32_t decSingleGetCoefficient (const decSingle *, uint8_t *)
int32_t decSingleGetExponent (const decSingle *)
decSingledecSingleSetCoefficient (decSingle *, const uint8_t *, int32_t)
decSingledecSingleSetExponent (decSingle *, decContext *, int32_t)
void decSingleShow (const decSingle *, const char *)
int32_t decSingleToBCD (const decSingle *, int32_t *, uint8_t *)
char * decSingleToEngString (const decSingle *, char *)
int32_t decSingleToPacked (const decSingle *, int32_t *, uint8_t *)
char * decSingleToString (const decSingle *, char *)
decDoubledecSingleToWider (const decSingle *, decDouble *)
decSingledecSingleZero (decSingle *)
uint32_t decSingleRadix (const decSingle *)
const char * decSingleVersion (void)

Define Documentation

#define DECSINGLE_Bias   101

Definition at line 29 of file decSingle.h.

#define DECSINGLE_Bytes   4

Definition at line 24 of file decSingle.h.

#define DECSINGLE_Declets   2

Definition at line 32 of file decSingle.h.

#define DECSINGLE_EconL   6

Definition at line 31 of file decSingle.h.

#define DECSINGLE_Ehigh   (DECSINGLE_Emax + DECSINGLE_Bias - (DECSINGLE_Pmax-1))

Definition at line 34 of file decSingle.h.

#define DECSINGLE_Emax   96

Definition at line 27 of file decSingle.h.

#define DECSINGLE_EmaxD   3

Definition at line 28 of file decSingle.h.

#define DECSINGLE_Emin   -95

Definition at line 26 of file decSingle.h.

#define DECSINGLE_Pmax   7

Definition at line 25 of file decSingle.h.

#define DECSINGLE_String   16

Definition at line 30 of file decSingle.h.

#define DECSINGLEAUTHOR   "Mike Cowlishaw"

Definition at line 21 of file decSingle.h.

#define decSingleFromNumber (   dq,
  dn,
  set 
)    (decSingle *)decimal32FromNumber((decimal32 *)(dq), dn, set)

Definition at line 76 of file decSingle.h.

#define DECSINGLENAME   "decSingle"

Definition at line 19 of file decSingle.h.

#define DECSINGLETITLE   "Decimal 32-bit datum"

Definition at line 20 of file decSingle.h.

#define decSingleToNumber (   dq,
  dn 
)    decimal32ToNumber((decimal32 *)(dq), dn)

Definition at line 75 of file decSingle.h.


Function Documentation

decSingle* decSingleFromBCD ( decSingle ,
int32_t  ,
const uint8_t ,
int32_t   
)
decSingle* decSingleFromPacked ( decSingle ,
int32_t  ,
const uint8_t  
)
decSingle* decSingleFromString ( decSingle ,
const char *  ,
decContext  
)
decSingle* decSingleFromWider ( decSingle ,
const decDouble ,
decContext  
)
int32_t decSingleGetCoefficient ( const decSingle ,
uint8_t  
)
int32_t decSingleGetExponent ( const decSingle )
uint32_t decSingleRadix ( const decSingle )
decSingle* decSingleSetCoefficient ( decSingle ,
const uint8_t ,
int32_t   
)
decSingle* decSingleSetExponent ( decSingle ,
decContext ,
int32_t   
)
void decSingleShow ( const decSingle ,
const char *   
)
int32_t decSingleToBCD ( const decSingle ,
int32_t ,
uint8_t  
)
char* decSingleToEngString ( const decSingle ,
char *   
)
int32_t decSingleToPacked ( const decSingle ,
int32_t ,
uint8_t  
)
char* decSingleToString ( const decSingle ,
char *   
)
decDouble* decSingleToWider ( const decSingle ,
decDouble  
)
const char* decSingleVersion ( void  )
decSingle* decSingleZero ( decSingle )