#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 |
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 *) |
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 *) |
decSingle * | decSingleZero (decSingle *) |
uint32_t | decSingleRadix (const decSingle *) |
const char * | decSingleVersion (void) |
Define Documentation
#define DECSINGLE_Bias 101 |
#define DECSINGLE_Bytes 4 |
#define DECSINGLE_Declets 2 |
#define DECSINGLE_EconL 6 |
#define DECSINGLE_Ehigh (DECSINGLE_Emax + DECSINGLE_Bias - (DECSINGLE_Pmax-1)) |
#define DECSINGLE_Emax 96 |
#define DECSINGLE_EmaxD 3 |
#define DECSINGLE_Emin -95 |
#define DECSINGLE_String 16 |
#define DECSINGLEAUTHOR "Mike Cowlishaw" |
#define decSingleFromNumber |
( |
|
dq, |
|
|
|
dn, |
|
|
|
set |
|
) |
| (decSingle *)decimal32FromNumber((decimal32 *)(dq), dn, set) |
#define DECSINGLENAME "decSingle" |
#define DECSINGLETITLE "Decimal 32-bit datum" |
#define decSingleToNumber |
( |
|
dq, |
|
|
|
dn |
|
) |
| decimal32ToNumber((decimal32 *)(dq), dn) |
Function Documentation
void decSingleShow |
( |
const decSingle * |
, |
|
|
const char * |
|
|
) |
| |
char* decSingleToEngString |
( |
const decSingle * |
, |
|
|
char * |
|
|
) |
| |
char* decSingleToString |
( |
const decSingle * |
, |
|
|
char * |
|
|
) |
| |
const char* decSingleVersion |
( |
void |
| ) |
|