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

Go to the source code of this file.
Defines | |
| #define | DECNUMDIGITS 34 |
| #define | DEC_clear(d) memset(d, 0, sizeof(*d)) |
Functions/Subroutines | |
| decimal128 * | decimal128FromNumber (decimal128 *d128, const decNumber *dn, decContext *set) |
| decNumber * | decimal128ToNumber (const decimal128 *d128, decNumber *dn) |
| char * | decimal128ToString (const decimal128 *d128, char *string) |
| char * | decimal128ToEngString (const decimal128 *d128, char *string) |
| decimal128 * | decimal128FromString (decimal128 *result, const char *string, decContext *set) |
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.
| decimal128* decimal128FromNumber | ( | decimal128 * | d128, | |
| const decNumber * | dn, | |||
| decContext * | set | |||
| ) |
Definition at line 76 of file decimal128.c.
References decNumber::bits, decimal128::bytes, DEC_Clamped, DEC_clear, DEC_INIT_DECIMAL128, decContextDefault(), decContextSetStatus(), decDensePackCoeff(), DECIMAL128_Bias, DECIMAL128_Ehigh, DECIMAL128_Emax, DECIMAL128_Emin, DECIMAL128_Pmax, decimal128SetExpCon, decimal128SetSign, DECIMAL_Inf, DECIMAL_NaN, DECIMAL_sNaN, DECINF, DECNAN, DECNEG, decNumberIsZero, decNumberPlus(), DECSPECIAL, decNumber::digits, exp, decNumber::exponent, Int, decNumber::lsu, decContext::round, decContext::status, top, uByte, uInt, and unsigned.
Referenced by decimal128FromString(), decimal_from_decnumber(), and encode_decimal128().
| decimal128* decimal128FromString | ( | decimal128 * | result, | |
| const char * | string, | |||
| decContext * | set | |||
| ) |
Definition at line 308 of file decimal128.c.
References DEC_INIT_DECIMAL128, decContextDefault(), decContextSetStatus(), decimal128FromNumber(), decNumberFromString(), decContext::round, and decContext::status.
| 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 | |||
| ) |
Definition at line 196 of file decimal128.c.
References decNumber::bits, decimal128::bytes, decDenseUnpackCoeff(), DECIMAL128_Bias, DECIMAL128_Pmax, decimal128ExpCon, decimal128Sign, DECIMAL_Inf, DECIMAL_NaN, DECINF, DECNAN, DECNEG, decNumberZero(), DECSNAN, exp, decNumber::exponent, Int, top, and uInt.
Referenced by decimal128ToEngString(), decimal128ToString(), decimal_do_compare(), decimal_do_fix_trunc(), decimal_real_to_integer(), decimal_real_to_integer2(), decimal_round_for_format(), decimal_to_decnumber(), decode_decimal128(), and isinfd128().
| 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().
1.5.6