osprey-gcc-4.2.0/libdecnumber/decimal128.c File Reference

#include <string.h>
#include <stdio.h>
#include "config.h"
#include "decNumber.h"
#include "decNumberLocal.h"
#include "decimal128.h"
#include "decUtility.h"

Include dependency graph for decimal128.c:

Go to the source code of this file.

Defines

#define DECNUMDIGITS   34
#define DEC_clear(d)   memset(d, 0, sizeof(*d))

Functions/Subroutines

decimal128decimal128FromNumber (decimal128 *d128, const decNumber *dn, decContext *set)
decNumberdecimal128ToNumber (const decimal128 *d128, decNumber *dn)
char * decimal128ToString (const decimal128 *d128, char *string)
char * decimal128ToEngString (const decimal128 *d128, char *string)
decimal128decimal128FromString (decimal128 *result, const char *string, decContext *set)


Define Documentation

#define DEC_clear ( d   )     memset(d, 0, sizeof(*d))

Definition at line 56 of file decimal128.c.

Referenced by decimal128FromNumber(), decimal32FromNumber(), and decimal64FromNumber().

#define DECNUMDIGITS   34

Definition at line 42 of file decimal128.c.


Function Documentation

decimal128* decimal128FromNumber ( decimal128 d128,
const decNumber dn,
decContext set 
)

decimal128* decimal128FromString ( decimal128 result,
const char *  string,
decContext set 
)

char* decimal128ToEngString ( const decimal128 d128,
char *  string 
)

Definition at line 284 of file decimal128.c.

References decimal128ToNumber(), and decNumberToEngString().

decNumber* decimal128ToNumber ( const decimal128 d128,
decNumber dn 
)

char* decimal128ToString ( const decimal128 d128,
char *  string 
)

Definition at line 275 of file decimal128.c.

References decimal128ToNumber(), and decNumberToString().

Referenced by decimal_real_to_decimal(), and decimal_to_binary().


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