#include "gstdint.h"#include <signal.h>


Go to the source code of this file.
Data Types | |
| type | decContext |
Defines | |
| #define | DECCONTEXT |
| #define | DECCNAME "decContext" |
| #define | DECCFULLNAME "Decimal Context Descriptor" |
| #define | DECCAUTHOR "Mike Cowlishaw" |
| #define | DECSUBSET 0 |
| #define | DEC_MAX_DIGITS 999999999 |
| #define | DEC_MIN_DIGITS 1 |
| #define | DEC_MAX_EMAX 999999999 |
| #define | DEC_MIN_EMAX 0 |
| #define | DEC_MAX_EMIN 0 |
| #define | DEC_MIN_EMIN -999999999 |
| #define | DEC_Conversion_syntax 0x00000001 |
| #define | DEC_Division_by_zero 0x00000002 |
| #define | DEC_Division_impossible 0x00000004 |
| #define | DEC_Division_undefined 0x00000008 |
| #define | DEC_Insufficient_storage 0x00000010 |
| #define | DEC_Inexact 0x00000020 |
| #define | DEC_Invalid_context 0x00000040 |
| #define | DEC_Invalid_operation 0x00000080 |
| #define | DEC_Overflow 0x00000200 |
| #define | DEC_Clamped 0x00000400 |
| #define | DEC_Rounded 0x00000800 |
| #define | DEC_Subnormal 0x00001000 |
| #define | DEC_Underflow 0x00002000 |
| #define | DEC_IEEE_854_Division_by_zero (DEC_Division_by_zero) |
| #define | DEC_IEEE_854_Inexact (DEC_Inexact) |
| #define | DEC_IEEE_854_Invalid_operation |
| #define | DEC_IEEE_854_Overflow (DEC_Overflow) |
| #define | DEC_IEEE_854_Underflow (DEC_Underflow) |
| #define | DEC_Errors |
| #define | DEC_NaNs DEC_IEEE_854_Invalid_operation |
| #define | DEC_Information (DEC_Clamped | DEC_Rounded | DEC_Inexact) |
| #define | DEC_Condition_CS "Conversion syntax" |
| #define | DEC_Condition_DZ "Division by zero" |
| #define | DEC_Condition_DI "Division impossible" |
| #define | DEC_Condition_DU "Division undefined" |
| #define | DEC_Condition_IE "Inexact" |
| #define | DEC_Condition_IS "Insufficient storage" |
| #define | DEC_Condition_IC "Invalid context" |
| #define | DEC_Condition_IO "Invalid operation" |
| #define | DEC_Condition_OV "Overflow" |
| #define | DEC_Condition_PA "Clamped" |
| #define | DEC_Condition_RO "Rounded" |
| #define | DEC_Condition_SU "Subnormal" |
| #define | DEC_Condition_UN "Underflow" |
| #define | DEC_Condition_ZE "No status" |
| #define | DEC_Condition_MU "Multiple status" |
| #define | DEC_Condition_Length 21 |
| #define | DEC_INIT_BASE 0 |
| #define | DEC_INIT_DECIMAL32 32 |
| #define | DEC_INIT_DECIMAL64 64 |
| #define | DEC_INIT_DECIMAL128 128 |
Enumerations | |
| enum | rounding { DEC_ROUND_CEILING, DEC_ROUND_UP, DEC_ROUND_HALF_UP, DEC_ROUND_HALF_EVEN, DEC_ROUND_HALF_DOWN, DEC_ROUND_DOWN, DEC_ROUND_FLOOR, DEC_ROUND_MAX } |
Functions/Subroutines | |
| decContext * | decContextDefault (decContext *, int32_t) |
| decContext * | decContextSetStatus (decContext *, uint32_t) |
| const char * | decContextStatusToString (const decContext *) |
| decContext * | decContextSetStatusFromString (decContext *, const char *) |
| #define DEC_Clamped 0x00000400 |
Definition at line 108 of file decContext.h.
Referenced by decContextSetStatusFromString(), decContextStatusToString(), decDivideOp(), decFinalize(), decimal128FromNumber(), decimal32FromNumber(), decimal64FromNumber(), decSetOverflow(), and decSetSubnormal().
| #define DEC_Condition_CS "Conversion syntax" |
Definition at line 148 of file decContext.h.
Referenced by decContextSetStatusFromString(), and decContextStatusToString().
| #define DEC_Condition_DI "Division impossible" |
Definition at line 150 of file decContext.h.
Referenced by decContextSetStatusFromString(), and decContextStatusToString().
| #define DEC_Condition_DU "Division undefined" |
Definition at line 151 of file decContext.h.
Referenced by decContextSetStatusFromString(), and decContextStatusToString().
| #define DEC_Condition_DZ "Division by zero" |
Definition at line 149 of file decContext.h.
Referenced by decContextSetStatusFromString(), and decContextStatusToString().
| #define DEC_Condition_IC "Invalid context" |
Definition at line 154 of file decContext.h.
Referenced by decContextSetStatusFromString(), and decContextStatusToString().
| #define DEC_Condition_IE "Inexact" |
Definition at line 152 of file decContext.h.
Referenced by decContextSetStatusFromString(), and decContextStatusToString().
| #define DEC_Condition_IO "Invalid operation" |
Definition at line 155 of file decContext.h.
Referenced by decContextSetStatusFromString(), and decContextStatusToString().
| #define DEC_Condition_IS "Insufficient storage" |
Definition at line 153 of file decContext.h.
Referenced by decContextSetStatusFromString(), and decContextStatusToString().
| #define DEC_Condition_Length 21 |
Definition at line 166 of file decContext.h.
| #define DEC_Condition_MU "Multiple status" |
| #define DEC_Condition_OV "Overflow" |
Definition at line 159 of file decContext.h.
Referenced by decContextSetStatusFromString(), and decContextStatusToString().
| #define DEC_Condition_PA "Clamped" |
Definition at line 160 of file decContext.h.
Referenced by decContextSetStatusFromString(), and decContextStatusToString().
| #define DEC_Condition_RO "Rounded" |
Definition at line 161 of file decContext.h.
Referenced by decContextSetStatusFromString(), and decContextStatusToString().
| #define DEC_Condition_SU "Subnormal" |
Definition at line 162 of file decContext.h.
Referenced by decContextSetStatusFromString(), and decContextStatusToString().
| #define DEC_Condition_UN "Underflow" |
Definition at line 163 of file decContext.h.
Referenced by decContextSetStatusFromString(), and decContextStatusToString().
| #define DEC_Condition_ZE "No status" |
Definition at line 164 of file decContext.h.
Referenced by decContextSetStatusFromString(), and decContextStatusToString().
| #define DEC_Conversion_syntax 0x00000001 |
Definition at line 96 of file decContext.h.
Referenced by decContextSetStatusFromString(), decContextStatusToString(), and decNumberFromString().
| #define DEC_Division_by_zero 0x00000002 |
Definition at line 97 of file decContext.h.
Referenced by decContextSetStatusFromString(), decContextStatusToString(), and decDivideOp().
| #define DEC_Division_impossible 0x00000004 |
Definition at line 98 of file decContext.h.
Referenced by decContextSetStatusFromString(), decContextStatusToString(), and decDivideOp().
| #define DEC_Division_undefined 0x00000008 |
Definition at line 99 of file decContext.h.
Referenced by decContextSetStatusFromString(), decContextStatusToString(), and decDivideOp().
| #define DEC_Errors |
Value:
(DEC_IEEE_854_Division_by_zero | \ DEC_IEEE_854_Invalid_operation | \ DEC_IEEE_854_Overflow | DEC_IEEE_854_Underflow)
Definition at line 132 of file decContext.h.
Referenced by decContextDefault().
| #define DEC_IEEE_854_Division_by_zero (DEC_Division_by_zero) |
Definition at line 116 of file decContext.h.
| #define DEC_IEEE_854_Inexact (DEC_Inexact) |
Definition at line 120 of file decContext.h.
| #define DEC_IEEE_854_Invalid_operation |
Value:
(DEC_Conversion_syntax | \ DEC_Division_impossible | \ DEC_Division_undefined | \ DEC_Insufficient_storage | \ DEC_Invalid_context | \ DEC_Invalid_operation)
Definition at line 122 of file decContext.h.
| #define DEC_IEEE_854_Overflow (DEC_Overflow) |
Definition at line 128 of file decContext.h.
| #define DEC_IEEE_854_Underflow (DEC_Underflow) |
Definition at line 129 of file decContext.h.
| #define DEC_Inexact 0x00000020 |
Definition at line 101 of file decContext.h.
Referenced by decAddOp(), decApplyRound(), decContextSetStatusFromString(), decContextStatusToString(), decimal_do_add(), decimal_do_divide(), decimal_do_multiply(), decNumberSquareRoot(), decSetCoeff(), decSetOverflow(), and decSetSubnormal().
| #define DEC_Information (DEC_Clamped | DEC_Rounded | DEC_Inexact) |
Definition at line 143 of file decContext.h.
| #define DEC_INIT_BASE 0 |
| #define DEC_INIT_DECIMAL128 128 |
Definition at line 173 of file decContext.h.
Referenced by decContextDefault(), decimal128FromNumber(), decimal128FromString(), decimal_do_add(), decimal_do_compare(), decimal_do_divide(), decimal_do_fix_trunc(), decimal_do_multiply(), decimal_from_decnumber(), decimal_real_from_string(), decimal_real_to_integer(), decimal_real_to_integer2(), decimal_round_for_format(), decimal_to_decnumber(), decode_decimal128(), decode_decimal32(), decode_decimal64(), encode_decimal128(), encode_decimal32(), and encode_decimal64().
| #define DEC_INIT_DECIMAL32 32 |
Definition at line 171 of file decContext.h.
Referenced by decContextDefault(), decimal32FromNumber(), decimal32FromString(), and decimal_round_for_format().
| #define DEC_INIT_DECIMAL64 64 |
Definition at line 172 of file decContext.h.
Referenced by decContextDefault(), decimal64FromNumber(), decimal64FromString(), decimal_round_for_format(), and decNumberSquareRoot().
| #define DEC_Insufficient_storage 0x00000010 |
Definition at line 100 of file decContext.h.
Referenced by decAddOp(), decCompareOp(), decContextSetStatusFromString(), decContextStatusToString(), decDivideOp(), decMultiplyOp(), decNumberFromString(), decNumberPower(), and decNumberSquareRoot().
| #define DEC_Invalid_context 0x00000040 |
Definition at line 102 of file decContext.h.
Referenced by decApplyRound(), decContextSetStatusFromString(), and decContextStatusToString().
| #define DEC_Invalid_operation 0x00000080 |
Definition at line 103 of file decContext.h.
Referenced by decAddOp(), decContextDefault(), decContextSetStatusFromString(), decContextStatusToString(), decDivideOp(), decMultiplyOp(), decNaNs(), decNumberPower(), decNumberSquareRoot(), decQuantizeOp(), and decSetSubnormal().
| #define DEC_MAX_DIGITS 999999999 |
Definition at line 87 of file decContext.h.
| #define DEC_MAX_EMAX 999999999 |
| #define DEC_MAX_EMIN 0 |
Definition at line 91 of file decContext.h.
| #define DEC_MIN_DIGITS 1 |
Definition at line 88 of file decContext.h.
| #define DEC_MIN_EMAX 0 |
Definition at line 90 of file decContext.h.
| #define DEC_MIN_EMIN -999999999 |
| #define DEC_NaNs DEC_IEEE_854_Invalid_operation |
| #define DEC_Overflow 0x00000200 |
Definition at line 107 of file decContext.h.
Referenced by decContextSetStatusFromString(), decContextStatusToString(), decimal_from_decnumber(), decNumberPower(), and decSetOverflow().
| #define DEC_Rounded 0x00000800 |
Definition at line 109 of file decContext.h.
Referenced by decAddOp(), decApplyRound(), decContextSetStatusFromString(), decContextStatusToString(), decNumberSquareRoot(), decSetCoeff(), decSetOverflow(), and decSetSubnormal().
| #define DEC_Subnormal 0x00001000 |
Definition at line 110 of file decContext.h.
Referenced by decApplyRound(), decContextSetStatusFromString(), decContextStatusToString(), decNumberPower(), and decSetSubnormal().
| #define DEC_Underflow 0x00002000 |
Definition at line 111 of file decContext.h.
Referenced by decApplyRound(), decContextSetStatusFromString(), decContextStatusToString(), decNumberPower(), decQuantizeOp(), and decSetSubnormal().
| #define DECCAUTHOR "Mike Cowlishaw" |
Definition at line 50 of file decContext.h.
| #define DECCFULLNAME "Decimal Context Descriptor" |
Definition at line 49 of file decContext.h.
| #define DECCNAME "decContext" |
Definition at line 48 of file decContext.h.
| #define DECCONTEXT |
Definition at line 47 of file decContext.h.
| #define DECSUBSET 0 |
| enum rounding |
| DEC_ROUND_CEILING | |
| DEC_ROUND_UP | |
| DEC_ROUND_HALF_UP | |
| DEC_ROUND_HALF_EVEN | |
| DEC_ROUND_HALF_DOWN | |
| DEC_ROUND_DOWN | |
| DEC_ROUND_FLOOR | |
| DEC_ROUND_MAX |
Definition at line 60 of file decContext.h.
| decContext* decContextDefault | ( | decContext * | , | |
| int32_t | ||||
| ) |
| decContext* decContextSetStatus | ( | decContext * | , | |
| uint32_t | ||||
| ) |
| decContext* decContextSetStatusFromString | ( | decContext * | , | |
| const char * | ||||
| ) |
Definition at line 174 of file decContext.c.
References DEC_Clamped, DEC_Condition_CS, DEC_Condition_DI, DEC_Condition_DU, DEC_Condition_DZ, DEC_Condition_IC, DEC_Condition_IE, DEC_Condition_IO, DEC_Condition_IS, DEC_Condition_OV, DEC_Condition_PA, DEC_Condition_RO, DEC_Condition_SU, DEC_Condition_UN, DEC_Condition_ZE, DEC_Conversion_syntax, DEC_Division_by_zero, DEC_Division_impossible, DEC_Division_undefined, DEC_Inexact, DEC_Insufficient_storage, DEC_Invalid_context, DEC_Invalid_operation, DEC_Overflow, DEC_Rounded, DEC_Subnormal, DEC_Underflow, decContextSetStatus(), NULL, and strcmp().
| const char* decContextStatusToString | ( | const decContext * | ) |
Definition at line 121 of file decContext.c.
References DEC_Clamped, DEC_Condition_CS, DEC_Condition_DI, DEC_Condition_DU, DEC_Condition_DZ, DEC_Condition_IC, DEC_Condition_IE, DEC_Condition_IO, DEC_Condition_IS, DEC_Condition_MU, DEC_Condition_OV, DEC_Condition_PA, DEC_Condition_RO, DEC_Condition_SU, DEC_Condition_UN, DEC_Condition_ZE, DEC_Conversion_syntax, DEC_Division_by_zero, DEC_Division_impossible, DEC_Division_undefined, DEC_Inexact, DEC_Insufficient_storage, DEC_Invalid_context, DEC_Invalid_operation, DEC_Overflow, DEC_Rounded, DEC_Subnormal, DEC_Underflow, Int, and decContext::status.
1.5.6