Ruby
1.9.3p551(2014-11-13revision48407)
|
#include "bigdecimal.h"
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <math.h>
Go to the source code of this file.
Macros | |
#define | NDEBUG |
#define | ENTER(n) volatile VALUE vStack[n];int iStack=0 |
#define | PUSH(x) vStack[iStack++] = (VALUE)(x); |
#define | SAVE(p) PUSH(p->obj); |
#define | GUARD_OBJ(p, y) {p=y;SAVE(p);} |
#define | BASE_FIG RMPD_COMPONENT_FIGURES |
#define | BASE RMPD_BASE |
#define | HALF_BASE (BASE/2) |
#define | BASE1 (BASE/10) |
#define | DBLE_FIG (DBL_DIG+1) /* figure of double */ |
#define | RBIGNUM_ZERO_P(x) |
#define | RRATIONAL_ZERO_P(x) |
#define | RRATIONAL_NEGATIVE_P(x) RTEST(rb_funcall((x), '<', 1, INT2FIX(0))) |
#define | PRIsVALUE "s" |
#define | RB_OBJ_CLASSNAME(obj) rb_obj_classname(obj) |
#define | RB_OBJ_STRING(obj) StringValueCStr(obj) |
#define | DoSomeOne(x, y, f) rb_num_coerce_bin(x,y,f) |
#define | BigMath_exp(x, n) BigMath_s_exp(rb_mBigMath, (x), (n)) |
#define | BigMath_log(x, n) BigMath_s_log(rb_mBigMath, (x), (n)) |
#define | is_positive(x) (!is_negative(x)) |
#define | maxnr 100UL /* Maximum iterations for calcurating sqrt. */ |
#define | MemCmp(x, y, z) memcmp(x,y,z) |
#define | StrCmp(x, y) strcmp(x,y) |
#define | rmpd_set_thread_local_exception_mode(mode) |
#define | rmpd_set_thread_local_precision_limit(limit) |
#define | RMPD_PRECISION_LIMIT_DEFAULT ((size_t)0) |
#define | rmpd_set_thread_local_rounding_mode(mode) |
#define BASE RMPD_BASE |
Definition at line 69 of file bigdecimal.c.
Referenced by for(), if(), VpAddAbs(), VpDivd(), VpDtoV(), VpInit(), VpMult(), VpRdup(), VpSqrt(), VpSubAbs(), and VpVtoD().
#define BASE1 (BASE/10) |
Definition at line 72 of file bigdecimal.c.
Referenced by if(), VpExponent10(), VpInit(), VpInternalRound(), and VpSzMantissa().
#define BASE_FIG RMPD_COMPONENT_FIGURES |
Definition at line 68 of file bigdecimal.c.
Referenced by AddExponent(), BigDecimal_to_f(), if(), VpAddSub(), VpAlloc(), VpAsgn(), VpCtoV(), VpDivd(), VpExponent10(), VpInit(), VpLimitRound(), VpMult(), VpNumOfChars(), VpPower(), VpSqrt(), and VpVtoD().
#define BigMath_exp | ( | x, | |
n | |||
) | BigMath_s_exp(rb_mBigMath, (x), (n)) |
Definition at line 1967 of file bigdecimal.c.
Referenced by rmpd_power_by_big_decimal().
#define BigMath_log | ( | x, | |
n | |||
) | BigMath_s_log(rb_mBigMath, (x), (n)) |
Definition at line 1968 of file bigdecimal.c.
Referenced by rmpd_power_by_big_decimal().
#define DBLE_FIG (DBL_DIG+1) /* figure of double */ |
Definition at line 75 of file bigdecimal.c.
#define DoSomeOne | ( | x, | |
y, | |||
f | |||
) | rb_num_coerce_bin(x,y,f) |
Definition at line 117 of file bigdecimal.c.
Referenced by BigDecimal_add(), BigDecimal_div2(), BigDecimal_divmod(), BigDecimal_divremain(), BigDecimal_mod(), BigDecimal_mult(), and BigDecimal_sub().
Definition at line 63 of file bigdecimal.c.
Referenced by BigDecimal_abs(), BigDecimal_add(), BigDecimal_add2(), BigDecimal_ceil(), BigDecimal_coerce(), BigDecimal_div2(), BigDecimal_divmod(), BigDecimal_divremain(), BigDecimal_DoDivmod(), BigDecimal_dump(), BigDecimal_fix(), BigDecimal_floor(), BigDecimal_frac(), BigDecimal_hash(), BigDecimal_inspect(), BigDecimal_load(), BigDecimal_mod(), BigDecimal_mult(), BigDecimal_mult2(), BigDecimal_neg(), BigDecimal_new(), BigDecimal_power(), BigDecimal_prec(), BigDecimal_round(), BigDecimal_split(), BigDecimal_sqrt(), BigDecimal_sub(), BigDecimal_sub2(), BigDecimal_to_f(), BigDecimal_to_i(), BigDecimal_to_s(), BigDecimal_truncate(), and BigDecimalCmp().
Definition at line 66 of file bigdecimal.c.
Referenced by BigDecimal_abs(), BigDecimal_add(), BigDecimal_add2(), BigDecimal_ceil(), BigDecimal_coerce(), BigDecimal_div2(), BigDecimal_divremain(), BigDecimal_DoDivmod(), BigDecimal_dump(), BigDecimal_fix(), BigDecimal_floor(), BigDecimal_frac(), BigDecimal_hash(), BigDecimal_inspect(), BigDecimal_load(), BigDecimal_mult(), BigDecimal_mult2(), BigDecimal_neg(), BigDecimal_new(), BigDecimal_power(), BigDecimal_prec(), BigDecimal_round(), BigDecimal_split(), BigDecimal_sqrt(), BigDecimal_sub(), BigDecimal_sub2(), BigDecimal_to_f(), BigDecimal_to_i(), BigDecimal_to_s(), BigDecimal_truncate(), and BigDecimalCmp().
#define HALF_BASE (BASE/2) |
Definition at line 71 of file bigdecimal.c.
Referenced by VpInit().
#define is_positive | ( | x | ) | (!is_negative(x)) |
Definition at line 1991 of file bigdecimal.c.
Referenced by BigDecimal_power().
#define maxnr 100UL /* Maximum iterations for calcurating sqrt. */ |
Definition at line 3115 of file bigdecimal.c.
Referenced by VpSqrt().
#define MemCmp | ( | x, | |
y, | |||
z | |||
) | memcmp(x,y,z) |
Definition at line 3119 of file bigdecimal.c.
#define NDEBUG |
Definition at line 23 of file bigdecimal.c.
#define PRIsVALUE "s" |
Definition at line 109 of file bigdecimal.c.
Referenced by BigDecimal_new(), ossl_asn1_default_tag(), ossl_cipher_init(), and ossl_x509_inspect().
#define PUSH | ( | x | ) | vStack[iStack++] = (VALUE)(x); |
Definition at line 64 of file bigdecimal.c.
#define RB_OBJ_CLASSNAME | ( | obj | ) | rb_obj_classname(obj) |
Definition at line 110 of file bigdecimal.c.
Referenced by BigDecimal_new(), ossl_asn1_default_tag(), and ossl_x509_inspect().
#define RB_OBJ_STRING | ( | obj | ) | StringValueCStr(obj) |
Definition at line 111 of file bigdecimal.c.
Referenced by ossl_cipher_init(), and ossl_x509_inspect().
#define RBIGNUM_ZERO_P | ( | x | ) |
Definition at line 79 of file bigdecimal.c.
Referenced by BigMath_s_log().
#define RMPD_PRECISION_LIMIT_DEFAULT ((size_t)0) |
Definition at line 3211 of file bigdecimal.c.
Referenced by VpGetPrecLimit().
#define rmpd_set_thread_local_exception_mode | ( | mode | ) |
Definition at line 3172 of file bigdecimal.c.
Referenced by VpGetException(), and VpSetException().
#define rmpd_set_thread_local_precision_limit | ( | limit | ) |
Definition at line 3205 of file bigdecimal.c.
Referenced by VpGetPrecLimit(), and VpSetPrecLimit().
#define rmpd_set_thread_local_rounding_mode | ( | mode | ) |
Definition at line 3242 of file bigdecimal.c.
Referenced by VpGetRoundMode(), and VpSetRoundMode().
#define RRATIONAL_NEGATIVE_P | ( | x | ) | RTEST(rb_funcall((x), '<', 1, INT2FIX(0))) |
Definition at line 102 of file bigdecimal.c.
Referenced by BigMath_s_log().
#define RRATIONAL_ZERO_P | ( | x | ) |
Definition at line 65 of file bigdecimal.c.
Referenced by BigDecimal_add(), BigDecimal_divmod(), BigDecimal_divremain(), BigDecimal_DoDivmod(), BigDecimal_mod(), BigDecimal_mult(), BigDecimal_sub(), and BigDecimalCmp().
#define StrCmp | ( | x, | |
y | |||
) | strcmp(x,y) |
Definition at line 3120 of file bigdecimal.c.
Referenced by VpAlloc().
|
static |
Definition at line 3591 of file bigdecimal.c.
References BASE_FIG, e, Real::exponent, m, n, SIGNED_VALUE, VP_EXCEPTION_OVERFLOW, VP_EXCEPTION_UNDERFLOW, VpException(), VpGetSign, VpSetInf, and VpSetZero.
Referenced by VpDivd(), VpMult(), VpNmlz(), VpRdup(), and VpSetPTR().
Definition at line 1493 of file bigdecimal.c.
References a, c, ENTER, GetVpValue(), GUARD_OBJ, mx, Real::Prec, ToValue(), VpAsgn(), VpBaseFig, VpChangeSign, and VpCreateRbObject().
Referenced by BigDecimal_power(), and Init_bigdecimal().
Definition at line 815 of file bigdecimal.c.
References a, b, c, DBL_DIG, DoSomeOne, ENTER, GetAddSubPrec(), GetVpValue(), GetVpValueWithPrec(), GUARD_OBJ, mx, Real::obj, Real::Prec, RB_TYPE_P, SAVE, T_FLOAT, T_RATIONAL, ToValue(), VpAddSub(), VpBaseFig, VpCreateRbObject(), VpGetSign, VpIsNaN, and VpSetInf.
Referenced by BigDecimal_add2(), BigMath_s_exp(), BigMath_s_log(), and Init_bigdecimal().
Definition at line 1436 of file bigdecimal.c.
References BigDecimal_add(), cv, ENTER, GetPositiveInt(), GetVpValue(), GUARD_OBJ, SIGNED_VALUE, ToValue(), VpGetRoundMode(), VpLeftRound(), and VpSetPrecLimit().
Referenced by Init_bigdecimal().
Definition at line 1739 of file bigdecimal.c.
References a, BigDecimal_to_i(), c, Check_Type, ENTER, FIX2INT, GetVpValue(), GUARD_OBJ, mx, Real::Prec, rb_scan_args(), T_FIXNUM, ToValue(), VP_ROUND_CEIL, VpActiveRound(), VpBaseFig, VpCreateRbObject(), and VpSetPrecLimit().
Referenced by Init_bigdecimal().
Definition at line 620 of file bigdecimal.c.
References VP_EXCEPTION_INFINITY, VP_EXCEPTION_NaN, VpException(), VpIsNaN, VpIsNegInf, and VpIsPosInf.
Referenced by BigDecimal_to_i(), and BigDecimal_to_r().
Definition at line 774 of file bigdecimal.c.
References b, BigDecimal_to_f(), DATA_PTR(), ENTER, GetVpValue(), GetVpValueWithPrec(), GUARD_OBJ, Real::obj, obj, Real::Prec, rb_assoc_new(), RB_TYPE_P, T_FLOAT, T_RATIONAL, and VpBaseFig.
Referenced by Init_bigdecimal().
Definition at line 1017 of file bigdecimal.c.
References BigDecimalCmp().
Referenced by Init_bigdecimal().
Definition at line 150 of file bigdecimal.c.
References VpFree().
Definition at line 1400 of file bigdecimal.c.
References av, b, BigDecimal_DoDivmod(), BigDecimal_to_i(), cv, DoSomeOne, ENTER, GetPositiveInt(), GetVpValue(), GUARD_OBJ, ix, mod, n, NULL, Real::Prec, rb_intern, rb_scan_args(), SIGNED_VALUE, ToValue(), VpBaseFig, VpCreateRbObject(), VpDivd(), VpGetRoundMode(), VpLeftRound(), and VpSetPrecLimit().
Referenced by BigMath_s_exp(), BigMath_s_log(), GetVpValueWithPrec(), and Init_bigdecimal().
Definition at line 1387 of file bigdecimal.c.
References BigDecimal_DoDivmod(), DoSomeOne, ENTER, mod, NULL, rb_assoc_new(), rb_intern, SAVE, and ToValue().
Referenced by Init_bigdecimal().
Definition at line 1308 of file bigdecimal.c.
References d, DBL_DIG, DoSomeOne, ENTER, GetVpValue(), GetVpValueWithPrec(), GUARD_OBJ, Real::MaxPrec, mx, NULL, Real::Prec, rb_intern, RB_TYPE_P, SAVE, T_FLOAT, T_RATIONAL, VP_ROUND_DOWN, VpActiveRound(), VpAddSub(), VpBaseFig, VpCreateRbObject(), VpDivd(), VpFrac(), and VpMult().
Referenced by BigDecimal_remainder().
Definition at line 1209 of file bigdecimal.c.
References a, b, c, d, DBL_DIG, ENTER, Real::exponent, GetAddSubPrec(), GetVpValue(), GetVpValueWithPrec(), GUARD_OBJ, mx, NULL, Real::Prec, Qfalse, Qtrue, rb_eZeroDivError, rb_raise(), RB_TYPE_P, res, SAVE, SIGNED_VALUE, T_FLOAT, T_RATIONAL, vabs, VP_ROUND_DOWN, VpActiveRound(), VpAddSub(), VpBaseFig, VpCreateRbObject(), VpDivd(), VpGetSign, VpIsInf, VpIsNaN, VpIsZero, VpMult(), VpOne(), and VpSetInf.
Referenced by BigDecimal_div2(), BigDecimal_divmod(), and BigDecimal_mod().
Definition at line 298 of file bigdecimal.c.
References INT2FIX, and VpDblFig.
Referenced by Init_bigdecimal().
Definition at line 343 of file bigdecimal.c.
References dummy, ENTER, GetVpValue(), GUARD_OBJ, PRIuSIZE, rb_scan_args(), rb_str_new(), rb_str_resize(), RSTRING_PTR, strlen(), VpBaseFig, VpMaxPrec, VpNumOfChars(), and VpToString().
Referenced by Init_bigdecimal().
Definition at line 1033 of file bigdecimal.c.
References BigDecimalCmp().
Referenced by BigDecimal_power(), and Init_bigdecimal().
Definition at line 1924 of file bigdecimal.c.
References e, GetVpValue(), INT2NUM(), and VpExponent10().
Referenced by Init_bigdecimal().
Definition at line 1534 of file bigdecimal.c.
References a, c, ENTER, GetVpValue(), GUARD_OBJ, mx, Real::Prec, ToValue(), VP_ROUND_DOWN, VpActiveRound(), VpBaseFig, and VpCreateRbObject().
Referenced by Init_bigdecimal().
Definition at line 1690 of file bigdecimal.c.
References a, BigDecimal_to_i(), c, Check_Type, ENTER, FIX2INT, GetVpValue(), GUARD_OBJ, mx, Real::Prec, rb_scan_args(), T_FIXNUM, ToValue(), VP_ROUND_FLOOR, VpActiveRound(), VpBaseFig, VpCreateRbObject(), and VpSetPrecLimit().
Referenced by Init_bigdecimal().
Definition at line 1657 of file bigdecimal.c.
References a, c, ENTER, GetVpValue(), GUARD_OBJ, mx, Real::Prec, ToValue(), VpBaseFig, VpCreateRbObject(), and VpFrac().
Referenced by Init_bigdecimal().
Definition at line 1081 of file bigdecimal.c.
References BigDecimalCmp().
Referenced by Init_bigdecimal().
Definition at line 2385 of file bigdecimal.c.
References BigDecimal_new(), and rb_cBigDecimal.
Referenced by Init_bigdecimal().
Definition at line 1069 of file bigdecimal.c.
References BigDecimalCmp().
Referenced by Init_bigdecimal().
Definition at line 326 of file bigdecimal.c.
References BDIGIT, ENTER, Real::exponent, Real::frac, GetVpValue(), GUARD_OBJ, hash, INT2FIX, p, Real::Prec, rb_memhash(), and Real::sign.
Referenced by Init_bigdecimal().
Definition at line 1941 of file bigdecimal.c.
References ENTER, GetVpValue(), GUARD_OBJ, obj, PRIuSIZE, PRIxVALUE, rb_str_new(), rb_str_resize(), RSTRING_PTR, strlen(), VpBaseFig, VpMaxPrec, VpNumOfChars(), VpPrec, and VpToString().
Referenced by Init_bigdecimal().
Definition at line 611 of file bigdecimal.c.
References GetVpValue(), p, Qfalse, Qtrue, VpIsInf, and VpIsNaN.
Referenced by Init_bigdecimal().
Definition at line 601 of file bigdecimal.c.
References GetVpValue(), INT2FIX, p, Qnil, VpIsNegInf, and VpIsPosInf.
Referenced by Init_bigdecimal().
Definition at line 590 of file bigdecimal.c.
References GetVpValue(), p, Qfalse, Qtrue, and VpIsNaN.
Referenced by Init_bigdecimal().
Definition at line 1057 of file bigdecimal.c.
References BigDecimalCmp().
Referenced by Init_bigdecimal().
Definition at line 2403 of file bigdecimal.c.
References Check_Type, FIX2INT, INT2NUM(), nf, Qnil, rb_eArgError, rb_raise(), rb_scan_args(), T_FIXNUM, VpGetPrecLimit(), and VpSetPrecLimit().
Referenced by Init_bigdecimal().
Definition at line 365 of file bigdecimal.c.
References ch, ENTER, GUARD_OBJ, ISDIGIT, long, m, Real::MaxPrec, rb_eTypeError, rb_raise(), RSTRING_PTR, SafeStringValue, ToValue(), VpBaseFig, and VpNewRbClass().
Referenced by Init_bigdecimal().
Definition at line 1045 of file bigdecimal.c.
References BigDecimalCmp().
Referenced by Init_bigdecimal().
Definition at line 156 of file bigdecimal.c.
References BDIGIT, Real::MaxPrec, and ptr.
Definition at line 1295 of file bigdecimal.c.
References BigDecimal_DoDivmod(), DoSomeOne, ENTER, mod, NULL, SAVE, and ToValue().
Referenced by Init_bigdecimal().
Definition at line 464 of file bigdecimal.c.
References check_rounding_mode(), Check_Type, FIX2INT, INT2FIX, long, NIL_P, Qfalse, Qnil, Qtrue, rb_eArgError, rb_eTypeError, rb_raise(), rb_scan_args(), sw, T_FIXNUM, val, VP_EXCEPTION_ALL, VP_EXCEPTION_INFINITY, VP_EXCEPTION_NaN, VP_EXCEPTION_UNDERFLOW, VP_EXCEPTION_ZERODIVIDE, VP_ROUND_MODE, VpGetException(), VpGetRoundMode(), VpSetException(), and VpSetRoundMode().
Referenced by Init_bigdecimal().
Definition at line 1109 of file bigdecimal.c.
References a, b, c, DBL_DIG, DoSomeOne, ENTER, GetVpValue(), GetVpValueWithPrec(), GUARD_OBJ, mx, Real::Prec, RB_TYPE_P, SAVE, T_FLOAT, T_RATIONAL, ToValue(), VpBaseFig, VpCreateRbObject(), and VpMult().
Referenced by BigDecimal_mult2(), BigMath_s_exp(), BigMath_s_log(), and Init_bigdecimal().
Definition at line 1470 of file bigdecimal.c.
References BigDecimal_mult(), cv, ENTER, GetPositiveInt(), GetVpValue(), GUARD_OBJ, SIGNED_VALUE, ToValue(), VpGetRoundMode(), VpLeftRound(), and VpSetPrecLimit().
Referenced by BigMath_s_exp(), BigMath_s_log(), Init_bigdecimal(), and rmpd_power_by_big_decimal().
Definition at line 1087 of file bigdecimal.c.
References a, c, ENTER, GetVpValue(), GUARD_OBJ, Real::Prec, ToValue(), VpAsgn(), VpBaseFig, and VpCreateRbObject().
Referenced by Init_bigdecimal().
Definition at line 2332 of file bigdecimal.c.
References DATA_PTR(), DBL_DIG, ENTER, GetPositiveInt(), GetVpValue(), GetVpValueWithPrec(), GUARD_OBJ, is_kind_of_BigDecimal(), NIL_P, PRIsVALUE, rb_eArgError, RB_OBJ_CLASSNAME, rb_raise(), rb_scan_args(), RSTRING_PTR, SafeStringValue, T_BIGNUM, T_DATA, T_FIXNUM, T_FLOAT, T_RATIONAL, T_STRING, ToValue(), TYPE, VpDup(), and VpNewRbClass().
Referenced by BigDecimal_global_new(), and Init_bigdecimal().
Definition at line 1007 of file bigdecimal.c.
References a, GetVpValue(), Qnil, and VpIsZero.
Referenced by Init_bigdecimal().
Definition at line 2083 of file bigdecimal.c.
References BigDecimal_abs(), BigDecimal_eq(), BigDecimal_round(), BigDecimal_to_i(), d, DATA_PTR(), DBL_DIG, ENTER, FIX2INT, GetVpValue(), GetVpValueWithPrec(), GUARD_OBJ, INT2FIX, is_even(), is_integer(), is_kind_of_BigDecimal(), is_negative(), is_one(), is_positive, is_zero(), n, NIL_P, NULL, NUM2SSIZET, Real::obj, Real::Prec, rb_eMathDomainError, rb_eTypeError, rb_funcall(), RB_GC_GUARD, rb_obj_classname(), rb_raise(), rb_scan_args(), RB_TYPE_P, RFLOAT_VALUE, rmpd_power_by_big_decimal(), round(), RRATIONAL, RTEST, SIGNED_VALUE, T_BIGNUM, T_DATA, T_FIXNUM, T_FLOAT, T_RATIONAL, ToValue(), TYPE, VpBaseFig, VpCreateRbObject(), VpGetSign, VpIsDef, VpIsInf, VpIsNaN, VpIsZero, VpPower(), VpSetInf, VpSetNaN, VpSetNegInf, VpSetPosInf, and zero().
Referenced by BigDecimal_power_op(), and Init_bigdecimal().
Definition at line 2309 of file bigdecimal.c.
References BigDecimal_power().
Referenced by Init_bigdecimal().
Definition at line 313 of file bigdecimal.c.
References ENTER, GetVpValue(), GUARD_OBJ, INT2NUM(), Real::MaxPrec, obj, p, Real::Prec, rb_assoc_new(), and VpBaseFig.
Referenced by Init_bigdecimal().
Definition at line 1358 of file bigdecimal.c.
References BigDecimal_divremain(), d, and ToValue().
Referenced by Init_bigdecimal().
Definition at line 1570 of file bigdecimal.c.
References a, BigDecimal_to_i(), c, check_rounding_mode(), Check_Type, ENTER, FIX2INT, GetVpValue(), GUARD_OBJ, mx, Real::Prec, rb_scan_args(), sw, T_FIXNUM, ToValue(), VpActiveRound(), VpBaseFig, VpCreateRbObject(), VpGetRoundMode(), and VpSetPrecLimit().
Referenced by BigDecimal_power(), BigMath_s_exp(), and Init_bigdecimal().
Definition at line 2448 of file bigdecimal.c.
References Qnil, rb_jump_tag(), rb_protect(), rb_yield(), ret, VpGetException(), and VpSetException().
Referenced by Init_bigdecimal().
Definition at line 2476 of file bigdecimal.c.
References Qnil, rb_jump_tag(), rb_protect(), rb_yield(), ret, VpGetPrecLimit(), and VpSetPrecLimit().
Referenced by Init_bigdecimal().
Definition at line 2462 of file bigdecimal.c.
References Qnil, rb_jump_tag(), rb_protect(), rb_yield(), ret, VpGetRoundMode(), and VpSetRoundMode().
Referenced by Init_bigdecimal().
Definition at line 2438 of file bigdecimal.c.
References GetVpValue(), INT2FIX, s, and Real::sign.
Referenced by Init_bigdecimal().
Definition at line 1887 of file bigdecimal.c.
References e, ENTER, GetVpValue(), GUARD_OBJ, INT2FIX, INT2NUM(), len, memmove(), obj, rb_ary_new2(), rb_ary_push(), rb_str_new(), rb_str_resize(), RSTRING_PTR, s, str, strlen(), VpExponent10(), VpNumOfChars(), and VpSzMantissa().
Referenced by BigDecimal_to_i(), BigDecimal_to_r(), and Init_bigdecimal().
Definition at line 1515 of file bigdecimal.c.
References a, c, ENTER, GetPositiveInt(), GetVpValue(), GUARD_OBJ, mx, n, Real::Prec, ToValue(), VpBaseFig, VpCreateRbObject(), VpDblFig, and VpSqrt().
Referenced by Init_bigdecimal().
Definition at line 867 of file bigdecimal.c.
References a, b, c, DBL_DIG, DoSomeOne, ENTER, GetAddSubPrec(), GetVpValue(), GetVpValueWithPrec(), GUARD_OBJ, mx, Real::obj, Real::Prec, RB_TYPE_P, SAVE, T_FLOAT, T_RATIONAL, ToValue(), VpAddSub(), VpBaseFig, VpCreateRbObject(), VpGetSign, VpIsNaN, and VpSetInf.
Referenced by BigDecimal_sub2(), BigMath_s_log(), and Init_bigdecimal().
Definition at line 1453 of file bigdecimal.c.
References BigDecimal_sub(), cv, ENTER, GetPositiveInt(), GetVpValue(), GUARD_OBJ, SIGNED_VALUE, ToValue(), VpGetRoundMode(), VpLeftRound(), and VpSetPrecLimit().
Referenced by Init_bigdecimal().
Definition at line 683 of file bigdecimal.c.
References BASE_FIG, buf, d, DBL_MAX_10_EXP, DBL_MIN_10_EXP, e, ENTER, errno, GetVpValue(), GUARD_OBJ, p, rb_float_new(), rb_str_new(), RSTRING_PTR, SIGNED_VALUE, str, strtod, VP_EXCEPTION_OVERFLOW, VP_EXCEPTION_UNDERFLOW, VpException(), VpGetDoubleNegInf(), VpGetDoublePosInf(), VpNumOfChars(), VpToString(), and VpVtoD().
Referenced by BigDecimal_coerce(), and Init_bigdecimal().
Definition at line 638 of file bigdecimal.c.
References a, BDIGIT_DBL_SIGNED, BigDecimal_check_num(), BigDecimal_split(), e, ENTER, Real::frac, GetVpValue(), GUARD_OBJ, INT2FIX, LONG2NUM, nf, p, RARRAY_PTR(), rb_eFloatDomainError, rb_funcall(), rb_intern, rb_raise(), RB_TYPE_P, ret, RSTRING_LEN, T_FLOAT, VpBaseFig, VpExponent10(), and VpGetSign.
Referenced by BigDecimal_ceil(), BigDecimal_div2(), BigDecimal_floor(), BigDecimal_power(), BigDecimal_round(), BigDecimal_truncate(), and Init_bigdecimal().
Definition at line 728 of file bigdecimal.c.
References a, BigDecimal_check_num(), BigDecimal_split(), GetVpValue(), INT2FIX, p, RARRAY_PTR(), rb_funcall(), rb_intern, rb_Rational(), rb_Rational1, RSTRING_LEN, VpExponent10(), and VpGetSign.
Referenced by Init_bigdecimal().
Definition at line 1796 of file bigdecimal.c.
References ch, ENTER, fmt, GetPositiveInt(), GetVpValue(), GUARD_OBJ, ISDIGIT, ISSPACE, rb_scan_args(), rb_str_new(), rb_str_resize(), RB_TYPE_P, RSTRING_PTR, SafeStringValue, str, strlen(), T_STRING, VpNumOfChars(), VpToFString(), and VpToString().
Referenced by Init_bigdecimal().
Definition at line 1628 of file bigdecimal.c.
References a, BigDecimal_to_i(), c, Check_Type, ENTER, FIX2INT, GetVpValue(), GUARD_OBJ, mx, Real::Prec, rb_scan_args(), T_FIXNUM, ToValue(), VP_ROUND_DOWN, VpActiveRound(), VpBaseFig, VpCreateRbObject(), and VpSetPrecLimit().
Referenced by Init_bigdecimal().
Definition at line 798 of file bigdecimal.c.
Referenced by Init_bigdecimal().
Definition at line 126 of file bigdecimal.c.
References rb_str_new2().
Referenced by Init_bigdecimal().
Definition at line 999 of file bigdecimal.c.
References a, GetVpValue(), Qfalse, Qtrue, and VpIsZero.
Referenced by Init_bigdecimal().
Definition at line 906 of file bigdecimal.c.
References a, b, DBL_DIG, e, ENTER, GetVpValue(), GetVpValueWithPrec(), GUARD_OBJ, INT2FIX, is_kind_of_BigDecimal(), NULL, Real::Prec, Qfalse, Qnil, Qtrue, rb_bug(), rb_intern, rb_num_coerce_cmp(), rb_num_coerce_relop(), RTEST, SAVE, SIGNED_VALUE, T_BIGNUM, T_DATA, T_FIXNUM, T_FLOAT, T_RATIONAL, TYPE, VpBaseFig, and VpComp().
Referenced by BigDecimal_comp(), BigDecimal_eq(), BigDecimal_ge(), BigDecimal_gt(), BigDecimal_le(), and BigDecimal_lt().
Definition at line 2497 of file bigdecimal.c.
References argv, BigDecimal_add(), BigDecimal_div2(), BigDecimal_mult(), BigDecimal_mult2(), BigDecimal_round(), cannot_be_coerced_into_BigDecimal(), d, DATA_PTR(), DBL_DIG, GetVpValue(), GetVpValueWithPrec(), i, INT2NUM(), is_kind_of_BigDecimal(), isinf(), isnan, m, n, NULL, NUM2SSIZET, Real::obj, one(), rb_eArgError, RB_GC_GUARD, rb_raise(), RFLOAT_VALUE, rmpd_double_figures(), SIGNED_VALUE, SSIZET2NUM, T_BIGNUM, T_DATA, T_FIXNUM, T_FLOAT, T_RATIONAL, ToValue(), TYPE, vabs, VP_SIGN_POSITIVE_INFINITE, VpCreateRbObject(), VpExponent10(), VpGetSign, VpIsNaN, VpIsNegInf, VpIsPosInf, VpIsZero, VpSetInf, VpSetNaN, and VpSetSign.
Referenced by Init_bigdecimal().
Definition at line 2629 of file bigdecimal.c.
References argv, BigDecimal_add(), BigDecimal_div2(), BigDecimal_mult(), BigDecimal_mult2(), BigDecimal_sub(), buf, cannot_be_coerced_into_BigDecimal(), d, DATA_PTR(), DBL_DIG, FIX2LONG, GetVpValue(), GetVpValueWithPrec(), i, INT2FIX, is_integer(), is_kind_of_BigDecimal(), isinf(), isnan, m, n, NULL, NUM2SSIZET, Real::obj, one(), rb_eArgError, rb_eMathDomainError, RB_GC_GUARD, rb_raise(), RBIGNUM_NEGATIVE_P, RBIGNUM_ZERO_P, RFLOAT_VALUE, rmpd_double_figures(), RRATIONAL_NEGATIVE_P, RRATIONAL_ZERO_P, SIGNED_VALUE, snprintf, SSIZET2NUM, T_BIGNUM, T_COMPLEX, T_DATA, T_FIXNUM, T_FLOAT, T_RATIONAL, ToValue(), TYPE, vabs, VP_SIGN_POSITIVE_INFINITE, VpCreateRbObject(), VpExponent10(), VpGetSign, VpIsNaN, VpIsNegInf, VpIsPosInf, VpIsZero, VpSetInf, VpSetNaN, and zero().
Referenced by Init_bigdecimal().
Definition at line 85 of file bigdecimal.c.
References BDIGIT, i, RBIGNUM_DIGITS, and RBIGNUM_LEN.
Definition at line 189 of file bigdecimal.c.
References rb_class_name(), rb_exc_new3(), rb_exc_raise(), rb_inspect(), rb_obj_class(), rb_special_const_p(), rb_str_cat2(), rb_str_dup(), and str.
Referenced by BigMath_s_exp(), BigMath_s_log(), and GetVpValueWithPrec().
Definition at line 390 of file bigdecimal.c.
References Check_Type, FIX2UINT, id, id_banker, id_ceil, id_ceiling, id_default, id_down, id_floor, id_half_down, id_half_even, id_half_up, id_truncate, id_up, rb_eArgError, rb_raise(), sw, SYM2ID, T_FIXNUM, T_SYMBOL, TYPE, VP_ROUND_CEIL, VP_ROUND_DOWN, VP_ROUND_FLOOR, VP_ROUND_HALF_DOWN, VP_ROUND_HALF_EVEN, VP_ROUND_HALF_UP, VP_ROUND_UP, and VpIsRoundMode().
Referenced by BigDecimal_mode(), and BigDecimal_round().
for | ( | v /= | shifter = 1 | ) |
Definition at line 5541 of file bigdecimal.c.
References BASE, and Real::frac.
Referenced by glob_helper().
Definition at line 5637 of file bigdecimal.c.
References Real::exponent, Real::frac, ix, s, SIGNED_VALUE, VpGetSign, VpRdup(), VpSetOne, and VpSetSign.
Definition at line 519 of file bigdecimal.c.
References d, Real::exponent, mx, Real::Prec, SIGNED_VALUE, VP_EXCEPTION_INFINITY, VpException(), and VpIsDef.
Referenced by BigDecimal_add(), BigDecimal_DoDivmod(), and BigDecimal_sub().
|
static |
Definition at line 540 of file bigdecimal.c.
References Check_Type, FIX2INT, n, rb_eArgError, rb_raise(), SIGNED_VALUE, and T_FIXNUM.
Referenced by BigDecimal_add2(), BigDecimal_div2(), BigDecimal_mult2(), BigDecimal_new(), BigDecimal_sqrt(), BigDecimal_sub2(), and BigDecimal_to_s().
Definition at line 285 of file bigdecimal.c.
References GetVpValueWithPrec().
Referenced by BigDecimal_abs(), BigDecimal_add(), BigDecimal_add2(), BigDecimal_ceil(), BigDecimal_coerce(), BigDecimal_div2(), BigDecimal_divremain(), BigDecimal_DoDivmod(), BigDecimal_dump(), BigDecimal_exponent(), BigDecimal_fix(), BigDecimal_floor(), BigDecimal_frac(), BigDecimal_hash(), BigDecimal_inspect(), BigDecimal_IsFinite(), BigDecimal_IsInfinite(), BigDecimal_IsNaN(), BigDecimal_mult(), BigDecimal_mult2(), BigDecimal_neg(), BigDecimal_new(), BigDecimal_nonzero(), BigDecimal_power(), BigDecimal_prec(), BigDecimal_round(), BigDecimal_sign(), BigDecimal_split(), BigDecimal_sqrt(), BigDecimal_sub(), BigDecimal_sub2(), BigDecimal_to_f(), BigDecimal_to_i(), BigDecimal_to_r(), BigDecimal_to_s(), BigDecimal_truncate(), BigDecimal_zero(), BigDecimalCmp(), BigMath_s_exp(), and BigMath_s_log().
Definition at line 208 of file bigdecimal.c.
References args, BigDecimal_div2(), cannot_be_coerced_into_BigDecimal(), DATA_PTR(), DBL_DIG, FIX2LONG, id_to_r, is_kind_of_BigDecimal(), LONG2NUM, NULL, Qundef, rb_big2str(), rb_eArgError, rb_eTypeError, rb_funcall(), rb_obj_classname(), rb_raise(), RRATIONAL, RSTRING_PTR, SafeStringValue, strlen(), T_BIGNUM, T_DATA, T_FIXNUM, T_FLOAT, T_RATIONAL, T_STRING, ToValue(), TYPE, VpBaseFig, and VpCreateRbObject().
Referenced by BigDecimal_add(), BigDecimal_coerce(), BigDecimal_divremain(), BigDecimal_DoDivmod(), BigDecimal_mult(), BigDecimal_new(), BigDecimal_power(), BigDecimal_sub(), BigDecimalCmp(), BigMath_s_exp(), BigMath_s_log(), GetVpValue(), and if().
GUARD_OBJ | ( | a | , |
GetVpValue(self, 1) | |||
) |
GUARD_OBJ | ( | * | c, |
VpCreateRbObject(mx,"#0") | |||
) |
GUARD_OBJ | ( | * | res, |
VpCreateRbObject((mx+1)*2+(VpBaseFig()+1),"#0") | |||
) |
Definition at line 1144 of file bigdecimal.c.
References DBL_DIG, and GetVpValueWithPrec().
else if | ( | RB_TYPE_P(r, T_RATIONAL) | ) |
Definition at line 1147 of file bigdecimal.c.
References GetVpValueWithPrec(), Real::Prec, and VpBaseFig.
if | ( | ! | b | ) |
if | ( | r! | = (VALUE)0 | ) |
Definition at line 1191 of file bigdecimal.c.
if | ( | VpToSpecialString(a, psz, fPlus) | ) |
Definition at line 4950 of file bigdecimal.c.
References BASE1, Real::frac, i, m, and strlen().
if | ( | ) |
Definition at line 5525 of file bigdecimal.c.
References nf, VP_ROUND_CEIL, VP_ROUND_FLOOR, VpGetSign, and VpSetZero.
if | ( | (size_t) ix >=y-> | Prec | ) |
if | ( | exptoadd | , |
0 | |||
) |
Definition at line 5653 of file bigdecimal.c.
References BASE, BASE_FIG, Real::exponent, exptoadd, Real::frac, and SIGNED_VALUE.
if | ( | ! | VpHasValy | ) |
Definition at line 2883 of file bigdecimal.c.
References arg, BigDecimal_abs(), BigDecimal_add(), BigDecimal_add2(), BigDecimal_ceil(), BigDecimal_coerce(), BigDecimal_comp(), BigDecimal_div2(), BigDecimal_divmod(), BigDecimal_double_fig(), BigDecimal_dump(), BigDecimal_eq(), BigDecimal_exponent(), BigDecimal_fix(), BigDecimal_floor(), BigDecimal_frac(), BigDecimal_ge(), BigDecimal_global_new(), BigDecimal_gt(), BigDecimal_hash(), BigDecimal_inspect(), BigDecimal_IsFinite(), BigDecimal_IsInfinite(), BigDecimal_IsNaN(), BigDecimal_le(), BigDecimal_limit(), BigDecimal_load(), BigDecimal_lt(), BigDecimal_mod(), BigDecimal_mode(), BigDecimal_mult(), BigDecimal_mult2(), BigDecimal_neg(), BigDecimal_new(), BigDecimal_nonzero(), BigDecimal_power(), BigDecimal_power_op(), BigDecimal_prec(), BigDecimal_remainder(), BigDecimal_round(), BigDecimal_save_exception_mode(), BigDecimal_save_limit(), BigDecimal_save_rounding_mode(), BigDecimal_sign(), BigDecimal_split(), BigDecimal_sqrt(), BigDecimal_sub(), BigDecimal_sub2(), BigDecimal_to_f(), BigDecimal_to_i(), BigDecimal_to_r(), BigDecimal_to_s(), BigDecimal_truncate(), BigDecimal_uplus(), BigDecimal_version(), BigDecimal_zero(), BigMath_s_exp(), BigMath_s_log(), id_banker, id_BigDecimal_exception_mode, id_BigDecimal_precision_limit, id_BigDecimal_rounding_mode, id_ceil, id_ceiling, id_default, id_down, id_eq, id_floor, id_half_down, id_half_even, id_half_up, id_to_r, id_truncate, id_up, INT2FIX, rb_cBigDecimal, rb_cNumeric, rb_define_class(), rb_define_const(), rb_define_global_function(), rb_define_method(), rb_define_module(), rb_define_singleton_method(), rb_intern_const, rb_mBigMath, rb_str_new2(), SIGNED_VALUE, VP_EXCEPTION_ALL, VP_EXCEPTION_INFINITY, VP_EXCEPTION_NaN, VP_EXCEPTION_OVERFLOW, VP_EXCEPTION_UNDERFLOW, VP_EXCEPTION_ZERODIVIDE, VP_ROUND_CEIL, VP_ROUND_DOWN, VP_ROUND_FLOOR, VP_ROUND_HALF_DOWN, VP_ROUND_HALF_EVEN, VP_ROUND_HALF_UP, VP_ROUND_MODE, VP_ROUND_UP, VP_SIGN_NaN, VP_SIGN_NEGATIVE_FINITE, VP_SIGN_NEGATIVE_INFINITE, VP_SIGN_NEGATIVE_ZERO, VP_SIGN_POSITIVE_FINITE, VP_SIGN_POSITIVE_INFINITE, VP_SIGN_POSITIVE_ZERO, VpBaseVal, and VpInit().
Definition at line 2042 of file bigdecimal.c.
References FIX2LONG, RBIGNUM_DIGITS, T_BIGNUM, T_FIXNUM, and TYPE.
Referenced by BigDecimal_power().
Definition at line 1971 of file bigdecimal.c.
References RB_TYPE_P, T_BIGNUM, and T_FIXNUM.
Referenced by BigDecimal_power(), and BigMath_s_log().
Definition at line 168 of file bigdecimal.c.
References rb_typeddata_is_kind_of().
Referenced by BigDecimal_new(), BigDecimal_power(), BigDecimalCmp(), BigMath_s_exp(), BigMath_s_log(), and GetVpValueWithPrec().
Definition at line 1977 of file bigdecimal.c.
References FIX2LONG, FIXNUM_P, INT2FIX, rb_funcall(), RB_TYPE_P, RBIGNUM_NEGATIVE_P, RFLOAT_VALUE, RTEST, T_BIGNUM, and T_FLOAT.
Referenced by BigDecimal_power().
Definition at line 2017 of file bigdecimal.c.
References FIX2LONG, FIXNUM_P, id_eq, INT2FIX, Qfalse, rb_funcall(), RRATIONAL, RTEST, T_BIGNUM, T_FIXNUM, T_RATIONAL, and TYPE.
Referenced by BigDecimal_power().
Definition at line 1994 of file bigdecimal.c.
References FIX2LONG, FIXNUM_P, id_eq, INT2FIX, Qfalse, rb_funcall(), RRATIONAL, RTEST, T_BIGNUM, T_FIXNUM, T_RATIONAL, and TYPE.
Referenced by BigDecimal_power().
Referenced by alloc_addrinfo(), argf_initialize(), asn1time_to_time(), big2str_karatsuba(), CreateChild(), enc_pred_char(), enc_register_at(), enc_succ_char(), enc_table_expand(), EVP_MD_CTX_cleanup(), EVP_MD_CTX_create(), EVP_MD_CTX_init(), fbuffer_alloc(), fbuffer_alloc_with_length(), fiber_t_alloc(), fill_random_seed(), flo_to_s(), flock_winnt(), fole_each(), get_version(), getpage(), HMAC_CTX_cleanup(), init_randomseed(), join_argv(), make_compile_option(), makroom(), ole_create_dcom(), ole_invoke(), ole_invoke2(), ole_propertyput(), ossl_asn1_get_asn1type(), ossl_cipher_init(), ossl_cipher_initialize(), overlapped_socket_io(), pack_unpack(), PEM_def_callback(), rand_init(), random_load(), rb_dlcfunc_call(), rb_dlptr_malloc(), rb_econv_convert0(), rb_file_expand_path_internal(), rb_iseq_disasm(), rb_objspace_alloc(), rb_quad_pack(), rb_str_format(), rb_str_justify(), rb_strftime_with_timespec(), rb_w32_asynchronize(), rbtime2vtdate(), recvmsg(), RMD160_Finish(), RMD160_Update(), sdbm_firstkey(), sdbm_prep(), sendmsg(), setup_overlapped(), socketpair_internal(), sockopt_s_linger(), splpage(), strio_ungetc(), unescape_escaped_nonascii(), unpack_entries(), VpCtoV(), VpDtoV(), VpMemAlloc(), VpMult(), w_float(), and winnt_stat().
NORETURN | ( | static void | cannot_be_coerced_into_BigDecimalVALUE, VALUE | ) |
|
static |
Definition at line 3311 of file bigdecimal.c.
References gOne_ABCED9B4_CE73__00400511F31D.
Referenced by VpGetDoubleNegInf(), VpGetDoubleNegZero(), and VpGetDoublePosInf().
return | ( | VALUE | ) |
Definition at line 2059 of file bigdecimal.c.
References BigDecimal_mult2(), BigMath_exp, BigMath_log, Real::obj, SSIZET2NUM, ToValue(), VpCreateRbObject(), and VpIsZero.
Referenced by BigDecimal_power().
SAVE | ( | b | ) |
switch | ( | f | ) |
Definition at line 5597 of file bigdecimal.c.
References div, Real::frac, VP_ROUND_CEIL, VP_ROUND_DOWN, VP_ROUND_FLOOR, VP_ROUND_HALF_DOWN, VP_ROUND_HALF_EVEN, VP_ROUND_HALF_UP, VP_ROUND_UP, and VpGetSign.
Referenced by dump_node().
Definition at line 174 of file bigdecimal.c.
References Real::obj, VP_EXCEPTION_INFINITY, VP_EXCEPTION_NaN, VpException(), VpIsNaN, VpIsNegInf, and VpIsPosInf.
Referenced by BigDecimal_abs(), BigDecimal_add(), BigDecimal_add2(), BigDecimal_ceil(), BigDecimal_div2(), BigDecimal_divmod(), BigDecimal_fix(), BigDecimal_floor(), BigDecimal_frac(), BigDecimal_load(), BigDecimal_mod(), BigDecimal_mult(), BigDecimal_mult2(), BigDecimal_neg(), BigDecimal_new(), BigDecimal_power(), BigDecimal_remainder(), BigDecimal_round(), BigDecimal_sqrt(), BigDecimal_sub(), BigDecimal_sub2(), BigDecimal_truncate(), BigMath_s_exp(), BigMath_s_log(), GetVpValueWithPrec(), and rmpd_power_by_big_decimal().
Definition at line 3957 of file bigdecimal.c.
References av, BASE, BDIGIT, bp, cp, Real::frac, VpAsgn(), and VpSetPTR().
Referenced by VpAddSub().
Definition at line 3829 of file bigdecimal.c.
References a, b, BASE_FIG, BDIGIT, Real::exponent, Real::frac, i, Min, n, Real::Prec, sw, VpAddAbs(), VpAsgn(), VpGetSign, VpInternalRound(), VpIsDefOP(), VpIsZero, VpSetSign, VpSetZero, and VpSubAbs().
Referenced by BigDecimal_add(), BigDecimal_divremain(), BigDecimal_DoDivmod(), BigDecimal_sub(), and VpSqrt().
Definition at line 3634 of file bigdecimal.c.
References BASE_FIG, BDIGIT, buf, i, ISDIGIT, ISSPACE, Max, Real::MaxPrec, mx, ne, nf, NULL, rb_str_resize(), rb_str_tmp_new(), RSTRING_PTR, StrCmp, strlen(), SZ_INF, SZ_NaN, SZ_NINF, SZ_PINF, v, VpCtoV(), VpGetPrecLimit(), VpMemAlloc(), VpSetNaN, VpSetNegInf, VpSetPosInf, and VpSetZero.
Referenced by VpCreateRbObject(), VpInit(), VpMult(), VpNewRbClass(), VpPower(), and VpSqrt().
Definition at line 3787 of file bigdecimal.c.
References BASE_FIG, BDIGIT, Real::exponent, Real::frac, Real::MaxPrec, memcpy(), n, Real::Prec, VpGetSign, VpInternalRound(), VpIsInf, VpIsNaN, VpIsZero, VpLimitRound(), VpSetInf, VpSetNaN, VpSetSign, and VpSetZero.
Referenced by BigDecimal_abs(), BigDecimal_neg(), VpAddAbs(), VpAddSub(), VpDivd(), VpFrac(), VpMult(), VpPower(), VpSqrt(), and VpSubAbs().
Definition at line 4632 of file bigdecimal.c.
References e, Real::exponent, Real::frac, mx, Real::Prec, Real::sign, val, VpGetSign, VpIsDef, VpIsNaN, and VpIsZero.
Referenced by BigDecimalCmp().
Definition at line 560 of file bigdecimal.c.
References Real::obj, rb_cBigDecimal, TypedData_Wrap_Struct, and VpAlloc().
Referenced by BigDecimal_abs(), BigDecimal_add(), BigDecimal_ceil(), BigDecimal_div2(), BigDecimal_divremain(), BigDecimal_DoDivmod(), BigDecimal_fix(), BigDecimal_floor(), BigDecimal_frac(), BigDecimal_mult(), BigDecimal_neg(), BigDecimal_power(), BigDecimal_round(), BigDecimal_sqrt(), BigDecimal_sub(), BigDecimal_truncate(), BigMath_s_exp(), BigMath_s_log(), GetVpValueWithPrec(), and rmpd_power_by_big_decimal().
VP_EXPORT int VpCtoV | ( | Real * | a, |
const char * | int_chr, | ||
size_t | ni, | ||
const char * | frac, | ||
size_t | nf, | ||
const char * | exp_chr, | ||
size_t | ne | ||
) |
Definition at line 5053 of file bigdecimal.c.
References BASE_FIG, BDIGIT, e, Real::exponent, Real::frac, i, Real::MaxPrec, memset(), ne, Real::Prec, rb_warn(), SIGNED_VALUE, VP_EXCEPTION_INFINITY, VpException(), VpNmlz(), VpSetInf, VpSetSign, VpSetZero, and zero().
Referenced by VpAlloc().
Definition at line 4383 of file bigdecimal.c.
References AddExponent(), BASE, BASE_FIG, BDIGIT, BDIGIT_DBL, Real::exponent, Real::frac, i, Real::MaxPrec, Min, n, Real::Prec, q, rb_bug(), VP_EXCEPTION_NaN, VP_EXCEPTION_ZERODIVIDE, VpAsgn(), VpException(), VpGetSign, VpIsDefOP(), VpIsOne, VpIsZero, VpNmlz(), VpSetInf, VpSetNaN, VpSetSign, and VpSetZero.
Referenced by BigDecimal_div2(), BigDecimal_divremain(), BigDecimal_DoDivmod(), VpPower(), and VpSqrt().
Definition at line 5268 of file bigdecimal.c.
References BASE, BDIGIT, d, Real::exponent, Real::frac, i, isinf(), isnan, Real::MaxPrec, memset(), ne, Real::Prec, SIGNED_VALUE, val, VpInternalRound(), VpSetNaN, VpSetNegInf, VpSetPosInf, VpSetSign, and VpSetZero.
Referenced by VpSqrt().
Definition at line 568 of file bigdecimal.c.
References assert, BDIGIT, Real::exponent, Real::flag, Real::frac, Real::MaxPrec, MEMCPY, NULL, Real::obj, Real::Prec, rb_obj_class(), Real::sign, TypedData_Wrap_Struct, and VpMemAlloc().
Referenced by BigDecimal_new().
Definition at line 3372 of file bigdecimal.c.
References exc, rb_eFloatDomainError, rb_fatal(), rb_raise(), VP_EXCEPTION_INFINITY, VP_EXCEPTION_MEMORY, VP_EXCEPTION_NaN, VP_EXCEPTION_OP, VP_EXCEPTION_UNDERFLOW, VP_EXCEPTION_ZERODIVIDE, and VpGetException().
Referenced by AddExponent(), BigDecimal_check_num(), BigDecimal_to_f(), GetAddSubPrec(), ToValue(), VpCtoV(), VpDivd(), VpIsDefOP(), VpMemAlloc(), and VpSqrt().
Definition at line 4846 of file bigdecimal.c.
References BASE1, BASE_FIG, ex, Real::exponent, Real::frac, n, and VpHasVal.
Referenced by BigDecimal_exponent(), BigDecimal_split(), BigDecimal_to_i(), BigDecimal_to_r(), BigMath_s_exp(), and BigMath_s_log().
|
static |
Definition at line 5777 of file bigdecimal.c.
References Real::exponent, Real::frac, Real::MaxPrec, Min, Real::Prec, VpAsgn(), VpGetSign, VpHasVal, VpNmlz(), VpSetSign, and VpSetZero.
Referenced by BigDecimal_divremain(), and BigDecimal_frac().
Definition at line 3150 of file bigdecimal.c.
References getchar, NULL, and xfree.
Referenced by BigDecimal_delete(), VpMult(), VpPower(), and VpSqrt().
Definition at line 3331 of file bigdecimal.c.
References Zero().
Definition at line 3347 of file bigdecimal.c.
Referenced by BigDecimal_to_f(), VpGetDoubleNegZero(), VpInit(), and VpVtoD().
Definition at line 3355 of file bigdecimal.c.
References One(), and VpGetDoubleNegInf().
Definition at line 3339 of file bigdecimal.c.
Referenced by BigDecimal_to_f(), VpInit(), and VpVtoD().
|
static |
Definition at line 3180 of file bigdecimal.c.
References FIX2UINT, id_BigDecimal_exception_mode, NIL_P, rb_thread_current(), rb_thread_local_aref(), RMPD_EXCEPTION_MODE_DEFAULT, and rmpd_set_thread_local_exception_mode.
Referenced by BigDecimal_mode(), BigDecimal_save_exception_mode(), and VpException().
Definition at line 3215 of file bigdecimal.c.
References id_BigDecimal_precision_limit, NIL_P, NUM2SIZET, rb_thread_current(), rb_thread_local_aref(), RMPD_PRECISION_LIMIT_DEFAULT, and rmpd_set_thread_local_precision_limit.
Referenced by BigDecimal_limit(), BigDecimal_save_limit(), VpAlloc(), VpLimitRound(), and VpSetPrecLimit().
Definition at line 3250 of file bigdecimal.c.
References FIX2INT, id_BigDecimal_rounding_mode, NIL_P, rb_thread_current(), rb_thread_local_aref(), RMPD_ROUNDING_MODE_DEFAULT, and rmpd_set_thread_local_rounding_mode.
Referenced by BigDecimal_add2(), BigDecimal_div2(), BigDecimal_mode(), BigDecimal_mult2(), BigDecimal_round(), BigDecimal_save_rounding_mode(), BigDecimal_sub2(), VpInternalRound(), VpLimitRound(), and VpSetRoundMode().
Definition at line 3553 of file bigdecimal.c.
References BASE, BASE1, BASE_FIG, DBLE_FIG, HALF_BASE, rmpd_double_figures(), VpAlloc(), VpGetDoubleNaN(), VpGetDoubleNegInf(), VpGetDoubleNegZero(), and VpGetDoublePosInf().
Referenced by Init_bigdecimal().
Definition at line 5704 of file bigdecimal.c.
References BASE1, VP_ROUND_CEIL, VP_ROUND_DOWN, VP_ROUND_FLOOR, VP_ROUND_HALF_DOWN, VP_ROUND_HALF_EVEN, VP_ROUND_HALF_UP, VP_ROUND_UP, VpGetRoundMode(), VpGetSign, VpLimitRound(), VpNmlz(), and VpRdup().
Referenced by VpAddSub(), VpAsgn(), and VpDtoV().
Definition at line 3412 of file bigdecimal.c.
References VP_EXCEPTION_INFINITY, VP_EXCEPTION_NaN, VpException(), VpGetSign, VpIsInf, VpIsNaN, VpIsZero, VpSetInf, VpSetNaN, and VpSetZero.
Referenced by VpAddSub(), VpDivd(), and VpMult().
Definition at line 3266 of file bigdecimal.c.
References VP_ROUND_CEIL, VP_ROUND_DOWN, VP_ROUND_FLOOR, VP_ROUND_HALF_DOWN, VP_ROUND_HALF_EVEN, VP_ROUND_HALF_UP, and VP_ROUND_UP.
Referenced by check_rounding_mode(), and VpSetRoundMode().
Definition at line 5691 of file bigdecimal.c.
References BASE_FIG, Real::Prec, VpGetPrecLimit(), VpGetRoundMode(), VpLeftRound(), and VpNmlz().
Referenced by VpAsgn(), VpInternalRound(), and VpMult().
Definition at line 3136 of file bigdecimal.c.
References memset(), p, VP_EXCEPTION_MEMORY, VpException(), and xmalloc.
Definition at line 4255 of file bigdecimal.c.
References a, AddExponent(), b, BASE, BASE_FIG, BDIGIT, BDIGIT_DBL, c, Real::exponent, Real::frac, i, Real::MaxPrec, memset(), NULL, Real::Prec, s, VpAlloc(), VpAsgn(), VpFree(), VpGetSign, VpIsDefOP(), VpIsOne, VpIsZero, VpLimitRound(), VpNmlz(), VpSetSign, and VpSetZero.
Referenced by BigDecimal_divremain(), BigDecimal_DoDivmod(), BigDecimal_mult(), VpPower(), and VpSqrt().
Definition at line 552 of file bigdecimal.c.
References Real::obj, TypedData_Wrap_Struct, and VpAlloc().
Referenced by BigDecimal_load(), and BigDecimal_new().
Definition at line 4594 of file bigdecimal.c.
References AddExponent(), BDIGIT, Real::frac, i, memmove(), Real::Prec, SIGNED_VALUE, VpGetSign, VpIsDef, VpIsZero, and VpSetZero.
Referenced by VpCtoV(), VpDivd(), VpFrac(), VpInternalRound(), VpLimitRound(), VpMult(), and VpRdup().
VpNmlz | ( | y | ) |
Definition at line 3509 of file bigdecimal.c.
References BASE_FIG, ex, Real::exponent, NULL, Real::Prec, SIGNED_VALUE, and VpIsDef.
Referenced by BigDecimal_dump(), BigDecimal_inspect(), BigDecimal_split(), BigDecimal_to_f(), and BigDecimal_to_s().
Definition at line 3584 of file bigdecimal.c.
References VpConstOne.
Referenced by BigDecimal_DoDivmod().
VP_EXPORT int VpPower | ( | Real * | y, |
Real * | x, | ||
SIGNED_VALUE | n | ||
) |
Definition at line 5825 of file bigdecimal.c.
References BASE_FIG, Real::exponent, Real::frac, Real::MaxPrec, n, NULL, Real::Prec, s, SIGNED_VALUE, VpAlloc(), VpAsgn(), VpDivd(), VpFree(), VpGetSign, VpIsInf, VpIsNaN, VpIsPosInf, VpIsZero, VpMult(), VpSetInf, VpSetNaN, VpSetOne, VpSetSign, and VpSetZero.
Referenced by BigDecimal_power().
Definition at line 5752 of file bigdecimal.c.
References AddExponent(), BASE, BDIGIT, Real::frac, Real::Prec, and VpNmlz().
Referenced by for(), and VpInternalRound().
|
static |
Definition at line 3196 of file bigdecimal.c.
References rmpd_set_thread_local_exception_mode.
Referenced by BigDecimal_mode(), and BigDecimal_save_exception_mode().
VP_EXPORT size_t VpSetPrecLimit | ( | size_t | n | ) |
Definition at line 3231 of file bigdecimal.c.
References rmpd_set_thread_local_precision_limit, s, and VpGetPrecLimit().
Referenced by BigDecimal_add2(), BigDecimal_ceil(), BigDecimal_div2(), BigDecimal_floor(), BigDecimal_limit(), BigDecimal_mult2(), BigDecimal_round(), BigDecimal_save_limit(), BigDecimal_sub2(), and BigDecimal_truncate().
|
static |
Definition at line 4160 of file bigdecimal.c.
References AddExponent(), Real::exponent, Real::frac, Max, Real::MaxPrec, and Real::Prec.
Referenced by VpAddAbs(), and VpSubAbs().
VP_EXPORT unsigned short VpSetRoundMode | ( | unsigned short | n | ) |
Definition at line 3284 of file bigdecimal.c.
References n, rmpd_set_thread_local_rounding_mode, VpGetRoundMode(), and VpIsRoundMode().
Referenced by BigDecimal_mode(), and BigDecimal_save_rounding_mode().
Definition at line 5398 of file bigdecimal.c.
References BASE, BASE_FIG, DBLE_FIG, e, Real::exponent, if(), maxnr, Real::MaxPrec, Min, n, NULL, PRIdSIZE, SIGNED_VALUE, val, VP_EXCEPTION_OP, VpAddSub(), VpAlloc(), VpAsgn(), VpChangeSign, VpDivd(), VpDtoV(), VpException(), VpFree(), VpGetSign, VpHasVal, VpIsOne, VpIsZero, VpMult(), VpSetNaN, VpSetOne, and VpVtoD().
Referenced by BigDecimal_sqrt().
Definition at line 4048 of file bigdecimal.c.
References av, BASE, BDIGIT, bp, cp, Real::frac, VpAsgn(), and VpSetPTR().
Referenced by VpAddSub().
Definition at line 4863 of file bigdecimal.c.
References BASE1, BDIGIT_DBL, e, Real::frac, i, m, n, nn, Real::Prec, strlen(), SZ_INF, SZ_NaN, SZ_NINF, VpGetSign, VpIsNaN, VpIsNegInf, VpIsPosInf, VpIsPosZero, and VpIsZero.
Referenced by BigDecimal_split().
VP_EXPORT int VpVtoD | ( | double * | d, |
SIGNED_VALUE * | e, | ||
Real * | m | ||
) |
Definition at line 5204 of file bigdecimal.c.
References BASE, BASE_FIG, DBLE_FIG, div, Real::exponent, Real::frac, Min, Real::Prec, SIGNED_VALUE, VpGetDoubleNaN(), VpGetDoubleNegInf(), VpGetDoubleNegZero(), VpGetDoublePosInf(), VpGetSign, VpIsNaN, VpIsNegInf, VpIsNegZero, VpIsPosInf, and VpIsPosZero.
Referenced by BigDecimal_to_f(), and VpSqrt().
while | ( | a->frac/ | shift[0] = = 0 | ) |
Definition at line 4978 of file bigdecimal.c.
References ex.
Referenced by ruby_vm_run_at_exit_hooks().
while | ( | sprintf( | psz[-1] = ='0' | ) |
Definition at line 4982 of file bigdecimal.c.
while | ( | (v/=10)! | = 0 | ) |
Definition at line 5677 of file bigdecimal.c.
|
static |
Definition at line 3305 of file bigdecimal.c.
References gZero_ABCED9B1_CE73__00400511F31D.
Referenced by VpGetDoubleNaN(), VpGetDoubleNegInf(), and VpGetDoublePosInf().
Definition at line 1140 of file bigdecimal.c.
Referenced by addrinfo_ipv4_loopback_p(), addrinfo_ipv4_multicast_p(), addrinfo_ipv4_private_p(), assert_array(), big_op(), BigDecimal_abs(), BigDecimal_add(), BigDecimal_ceil(), BigDecimal_DoDivmod(), BigDecimal_fix(), BigDecimal_floor(), BigDecimal_frac(), BigDecimal_mult(), BigDecimal_neg(), BigDecimal_nonzero(), BigDecimal_round(), BigDecimal_sqrt(), BigDecimal_sub(), BigDecimal_to_i(), BigDecimal_to_r(), BigDecimal_truncate(), BigDecimal_zero(), BigDecimalCmp(), bmcall(), c_civil_to_jd(), c_jd_to_civil(), c_jd_to_commercial(), calc_wday(), cdhash_hash(), cmp_equal(), d_lite_marshal_dump(), date_zone_to_diff(), diff(), do_coerce(), f_addsub(), fix_divmod(), fix_minus(), fix_mul(), fix_plus(), fix_pow(), flo_cmp(), flo_divmod(), flo_eq(), flo_eql(), flo_ge(), flo_gt(), flo_le(), flo_lt(), float_rationalize(), genrand_real(), genrand_real2(), intrcmp(), isLegalUTF8(), jisx0301_date(), long_mul(), md5_process(), memcmp(), mmrot3_(), mmswap_(), mult(), multadd(), nucomp_abs(), nucomp_marshal_dump(), nurat_marshal_dump(), nurat_rationalize(), opt_eq_func(), ossl_pkcs7_copy(), ossl_x509_copy(), ossl_x509crl_copy(), ossl_x509req_copy(), p_gamma(), pack_pack(), pack_unpack(), q_gamma(), quo(), rb_big_cmp(), rb_big_eq(), rb_econv_init_by_convpath_i(), rb_iseq_parameters(), rb_proc_exec(), rb_Rational(), rb_time_unmagnify(), rb_time_unmagnify_to_float(), ripper_token2eventid(), rsock_addrinfo_new(), rt_complete_frags(), SHA1_Transform(), SHA256_Transform(), SHA512_Transform(), sort_1(), sort_2(), sort_by_cmp(), st_foreach_safe(), string_to_c(), string_to_r(), string_to_r_internal(), string_to_r_strict(), strscan_inspect(), strstr(), swap_node(), syck_base64dec(), syck_hdlr_add_anchor(), syck_hdlr_get_anchor(), syck_hdlr_remove_anchor(), time_round(), ulp(), unnamed_parameters(), vm_exec_core(), VpAddSub(), VpMult(), wcmp(), wi_mul(), and wquo().
Definition at line 1140 of file bigdecimal.c.
Referenced by big2str_karatsuba(), BigDecimal_add(), BigDecimal_coerce(), BigDecimal_div2(), BigDecimal_DoDivmod(), BigDecimal_mult(), BigDecimal_sub(), BigDecimalCmp(), c_civil_to_jd(), c_jd_to_civil(), caller_setup_args(), cond0(), d2b(), date__strptime_internal(), date_zone_to_diff(), diff(), f_addsub(), f_imul(), f_round_common(), fix_divmod(), fix_minus(), fix_mul(), fix_plus(), fix_pow(), fix_to_s(), flo_cmp(), flo_divmod(), flo_eq(), flo_eql(), flo_ge(), flo_gt(), flo_le(), flo_lt(), float_rationalize(), genrand_real(), genrand_real2(), i2b(), intcmp(), is_internal_cmd(), long_mul(), md5_process(), memcmp(), mmrot3_(), mmswap_(), mult(), multadd(), nurat_rationalize(), opt_eq_func(), ossl_bn_is_bit_set(), ossl_pkcs7_copy(), ossl_x509_copy(), ossl_x509crl_copy(), ossl_x509req_copy(), pack_unpack(), parse_eu_cb(), parse_us_cb(), pow5mult(), quo(), range_each_func(), range_include(), range_max(), range_min(), range_step(), rb_any_cmp(), rb_big_eq(), rb_big_to_s(), rb_file_expand_path_internal(), rb_fix2str(), rb_hash_set_default_proc(), rb_range_beg_len(), rb_range_values(), rb_reg_expr_str(), rb_str_to_i(), rb_str_upto(), rb_time_unmagnify(), rb_time_unmagnify_to_float(), ruby_dtoa(), ruby_strtoul(), s2b(), SHA1_Transform(), SHA256_Transform(), SHA512_Transform(), sort_1(), sort_2(), sort_by_cmp(), strscan_inspect(), strstr(), swap_node(), syck_base64dec(), time_round(), unescape_unicode(), valid_range_p(), vm_exec_core(), VpAddSub(), VpMult(), wcmp(), wi_mul(), and wquo().
|
static |
Definition at line 162 of file bigdecimal.c.
Definition at line 1163 of file bigdecimal.c.
Referenced by add_char_opt_map_info(), add_ctype_to_cc(), argf_readbyte(), big5_is_allowed_reverse_match(), big_sparse_p(), BigDecimal_abs(), BigDecimal_add(), BigDecimal_ceil(), BigDecimal_DoDivmod(), BigDecimal_fix(), BigDecimal_floor(), BigDecimal_frac(), BigDecimal_mult(), BigDecimal_neg(), BigDecimal_round(), BigDecimal_sqrt(), BigDecimal_sub(), BigDecimal_truncate(), bigsqr_fast(), bm_init_skip(), broken_getc(), broken_ungetc(), buf_shift(), c_jd_to_civil(), cap_ungetc(), cmp_eq(), cmp_ge(), cmp_gt(), cmp_le(), cmp_lt(), conv_backslash_value(), convert_UTF8_to_JSON(), cp949_is_allowed_reverse_match(), curses_getch(), date__strptime_internal(), dbl2big(), diff(), enc_strlen(), enc_succ_alnum_char(), euckr_is_allowed_reverse_match(), euctw_is_allowed_reverse_match(), f_addsub(), f_cmp(), f_imul(), fetch_char_property_to_ctype(), fetch_escaped_value(), fetch_name(), fetch_name_with_level(), fetch_range_quantifier(), fetch_token(), fetch_token_in_cc(), find_dirsep(), finish_cp50220_encoder(), fix_minus(), fix_mul(), fix_plus(), fmt_setup(), freverse(), fun_si_cp50221_decoder(), fun_so_cp50220_encoder(), gb18030_mbc_to_code(), gbk_is_allowed_reverse_match(), getdbit(), has_magic(), iconv_convert(), Init_curses(), int_chr(), int_downto(), int_upto(), io_bufread(), is_allowed_reverse_match(), is_internal_cmd(), is_not_included(), iso2022jp_check_conv(), load_file_internal(), long_mul(), mbc_to_code(), md5_process(), mime_integrity(), mime_putc(), mime_ungetc(), mime_ungetc_buf(), mimeout_addchar(), mmrot3_(), month_arg(), mult(), nfc_getc(), nfc_ungetc(), nkf_buf_push(), noconvert(), node_new_str_raw_char(), node_str_cat_char(), numchar_getc(), numchar_ungetc(), nurat_rationalize_internal(), onig_reduce_nested_quantifier(), onig_scan_unsigned_number(), onigenc_mbn_mbc_to_code(), onigenc_with_ascii_strncmp(), original_module(), pack_pack(), pack_unpack(), parse_enclose(), parse_posix_bracket(), parser_here_document(), parser_heredoc_identifier(), parser_nextc(), parser_parse_string(), parser_peek_variable_name(), parser_prepare(), parser_read_escape(), parser_regx_options(), parser_tok_hex(), parser_tokadd_escape(), parser_tokadd_mbchar(), parser_tokadd_string(), parser_yylex(), path_inspect(), proc_options(), quo(), r_byte(), r_le(), r_long(), r_object0(), range_each_func(), range_max(), range_min(), rb_cstr_to_inum(), rb_enc_ascget(), rb_enc_strlen_cr(), rb_gzreader_each_byte(), rb_gzreader_each_char(), rb_gzwriter_putc(), rb_include_module(), rb_intern3(), rb_io_each_char(), rb_io_each_codepoint(), rb_io_getbyte(), rb_io_getline_1(), rb_io_putc(), rb_io_readbyte(), rb_io_readchar(), rb_nkf_putchar(), rb_num_coerce_relop(), rb_obj_inspect(), rb_path_to_class(), rb_reg_expr_str(), rb_reg_quote(), rb_reg_regsub(), rb_str_buf_cat_ascii(), rb_str_capitalize_bang(), rb_str_count(), rb_str_delete_bang(), rb_str_downcase_bang(), rb_str_dump(), rb_str_each_codepoint(), rb_str_each_line(), rb_str_format(), rb_str_inspect(), rb_str_ord(), rb_str_reverse_bang(), rb_str_rstrip_bang(), rb_str_split_m(), rb_str_squeeze_bang(), rb_str_succ(), rb_str_swapcase_bang(), rb_str_upcase_bang(), rb_str_upto(), rb_time_unmagnify(), rb_time_unmagnify_to_float(), rb_tolower(), rb_toupper(), rb_undef(), rb_w32_cmdvector(), rb_w32_getc(), rb_w32_putc(), reg_fragment_setenc_gen(), rmext(), ruby_strtod(), ruby_strtoul(), s3e(), s_oconv(), scan_digits(), scan_unsigned_hexadecimal_number(), scan_unsigned_octal_number(), setdbit(), SHA1_Transform(), SHA256_Transform(), SHA512_Transform(), sign_bits(), sip_hash_init(), status_push_ch(), std_ungetc(), str_end_cmp(), str_end_with_asciichar(), strcasehash(), strio_each_byte(), strio_each_char(), strio_each_codepoint(), strio_getbyte(), strio_putc(), strio_readbyte(), strio_readchar(), swap_node(), syck_base64dec(), sym_printable(), tr_find(), tr_setup_table(), tr_trans(), trnext(), unescape_nonascii(), update_char_offset(), url_ungetc(), utf8_to_uv(), VpMult(), wi_mul(), window_box(), window_getbkgd(), window_getch(), wquo(), x0212_shift(), x0212_unshift(), and z_conv().
Definition at line 1157 of file bigdecimal.c.
Referenced by fix_divide(), fix_divmod(), fixdivmod(), flo_divmod(), flodivmod(), rb_big_divide(), rb_big_divmod(), switch(), and VpVtoD().
BDIGIT e |
Definition at line 4946 of file bigdecimal.c.
Referenced by AddExponent(), appendline(), BigDecimal_exponent(), BigDecimal_split(), BigDecimal_to_f(), BigDecimal_to_i(), BigDecimalCmp(), build_exception(), c_jd_to_civil(), check_exec_options_i(), check_pipe_command(), coderange_scan(), cond0(), date_strftime_with_tmx(), enc_strlen(), enumerator_block_call(), enumerator_feed(), enumerator_next_values(), enumerator_peek_values(), enumerator_rewind(), env_assoc(), error_print(), establishShell(), flo_to_s(), float_rationalize(), gengo(), getrusage_time(), gzreader_charboundary(), iconv_iconv(), Init_ossl_rsa(), inspect_enumerator(), load_encoding(), loaded_feature_path(), mk_ary_of_str(), n2i(), name_add(), name_find(), next_i(), next_ii(), nurat_rationalize(), onigenc_str_bytelen_null(), onigenc_strlen_null(), ossl_get_errors(), ossl_make_error(), parse_jis_cb(), pipe_open(), property_name_to_ctype(), r_object0(), range_each_func(), range_include(), range_max(), range_min(), range_step(), rb_ary_delete(), rb_chsize(), rb_cstr_to_dbl(), rb_enc_strlen_cr(), rb_enc_symname2_p(), rb_feature_p(), rb_file_expand_path_internal(), rb_file_open_internal(), rb_file_s_extname(), rb_intern3(), rb_io_each_byte(), rb_io_extract_modeenc(), rb_io_getline_1(), rb_io_getline_fast(), rb_range_beg_len(), rb_range_values(), rb_reg_regsub(), rb_reg_s_union(), rb_str_chomp_bang(), rb_str_end_with(), rb_str_hash(), rb_str_index(), rb_str_lstrip_bang(), rb_str_reverse(), rb_str_reverse_bang(), rb_str_rindex(), rb_str_rstrip_bang(), rb_str_splice(), rb_str_substr(), rb_str_succ(), rb_str_upto(), rb_strftime_with_timespec(), rb_w32_truncate(), rescue_callback(), rmext(), rt_complete_frags(), ruby_enc_find_basename(), ruby_enc_find_extname(), ruby_strtod(), search_nonascii(), setup_exception(), SHA1_Transform(), SHA256_Transform(), SHA512_Transform(), st_init_table_with_size(), str_nth(), str_nth_len(), str_strlen(), strio_getline(), swallow(), syck_new_emitter(), syserr_eqq(), timeofday(), utf16be_mbc_enc_len(), VpComp(), VpCtoV(), VpSqrt(), VpSzMantissa(), w_float(), and zip_ary().
else |
Definition at line 1150 of file bigdecimal.c.
Definition at line 4948 of file bigdecimal.c.
Referenced by big_fdiv(), ruby_cleanup(), VpExponent10(), VpNumOfChars(), and while().
exptoadd =0 |
Definition at line 5519 of file bigdecimal.c.
Referenced by if().
volatile const double gOne_ABCED9B4_CE73__00400511F31D = 1.0 |
Definition at line 3303 of file bigdecimal.c.
Referenced by One().
volatile const double gZero_ABCED9B1_CE73__00400511F31D = 0.0 |
Definition at line 3302 of file bigdecimal.c.
Referenced by Zero().
int i |
Definition at line 5519 of file bigdecimal.c.
Referenced by add_char_amb_opt_map_info(), add_ctype_to_cc_by_range(), add_heap_slots(), allocate(), alt_merge_opt_exact_info(), alt_merge_opt_map_info(), and_code_range1(), and_code_range_buf(), apply2files(), array2fdset(), ary2ptr_dispparams(), ary2safe_array_index(), ary_add_hash(), ary_add_hash_by(), ary_join_0(), ary_join_1(), ary_new_dim(), ary_reject(), ary_reject_bang(), base64decode(), big2dbl(), big2str_orig(), big_fdiv(), big_lshift(), big_rshift(), bigadd_core(), bigadd_int(), bigand_int(), bigdivrem(), bigdivrem1(), biglsh_bang(), BigMath_s_exp(), BigMath_s_log(), bigmul1_balance(), bigmul1_karatsuba(), bigmul1_normal(), bigor_int(), bigrsh_bang(), bigsqr_fast(), bigsub_core(), bigsub_int(), bigxor_int(), bigzero_p(), bitset_and(), bitset_copy(), bitset_invert(), bitset_invert_to(), bitset_is_empty(), bitset_or(), bitset_set_range(), bm_search(), bsock_setsockopt(), bubblebabble_str_new(), c_find_ldom(), c_find_ldoy(), call_queue_mark(), callback(), caller_setup_args(), check_class(), check_exec_fds(), check_exec_redirect(), chfunc(), clear_coverage_i(), cmp(), code_page(), collect_local_variables_in_iseq(), compat_init_setproctitle(), compile_array_(), compile_massign_opt(), compile_quantifier_node(), compile_tree(), compile_tree_n_times(), concat_opt_exact_info(), concat_opt_exact_info_str(), convert_type(), count_nodes(), count_objects(), count_objects_size(), coverage(), d2b(), d_lite_plus(), date__strptime_internal(), date_strftime_with_tmx(), date_zone_to_diff(), day_num(), dbl2big(), decorate_convpath(), delpair(), diff(), dir_globs(), dlhandle_sym(), dln_find_1(), dup2(), dvar_defined_gen(), econv_convpath(), econv_equal(), enc_autoload(), enc_pred_char(), enc_succ_char(), encodes(), enum_cycle(), enum_reverse_each(), enum_sort_by(), enum_zip(), env_each_key(), env_each_pair(), env_each_value(), env_inspect(), env_reject_bang(), env_replace(), env_select_bang(), env_size(), env_values_at(), envix(), error_print(), EVENTSINK_Invoke(), expand_case_fold_string_alt(), fdbm_delete_if(), fdbm_empty_p(), fdbm_length(), fdbm_values_at(), fdset2array(), fetch_token(), fgdbm_delete_if(), fgdbm_length(), fgdbm_values_at(), filename_completion_proc_call(), find_coclass(), find_i(), find_prev_line_no(), find_str_position(), first_i(), fix_abs(), fix_aref(), fix_succ(), flatten(), flo_cmp(), flock_winnt(), foletype_s_progids(), foletypelib_s_typelibs(), folevariant_s_array(), for(), free_unused_heaps(), fsdbm_delete_if(), fsdbm_empty_p(), fsdbm_length(), fsdbm_values_at(), function_call(), gb18030_mbc_to_code(), gc_mark_children(), gc_profile_record_get(), gc_profile_result(), gc_profile_total_time(), generate_json_array(), generate_json_object(), get2comp(), get_addr(), get_backup_filename(), get_dyna_var_idx_at_raw(), get_insn_info(), get_max_match_length(), get_min_match_length(), getaddrinfo(), getnameinfo(), getpair(), gmtimew_noleapsecond(), hash2named_arg(), hash2ptr_dispparams(), hexencode_str_new(), hist_delete_at(), hist_each(), hist_get(), httpdate_type1_cb(), httpdate_type2_cb(), httpdate_type3_cb(), i2b(), i_apply_case_fold(), i_renumber_name(), iconv_convert(), if(), init_by_array(), init_case_fold_table(), Init_curses(), init_des(), Init_Encoding(), init_mark_stack(), Init_Object(), Init_ossl_asn1(), Init_ossl_ssl(), Init_RandomSeed(), initialize(), inject_i(), inject_op_i(), insn_make_insn_table(), insn_operand_intern(), insn_set_specialized_instruction(), inspect_ary(), inspect_errno(), inspect_int(), inspect_struct(), int_chr(), int_dotimes(), int_downto(), int_pair_to_real_inclusive(), int_sip_pad_final_block(), int_sip_round(), int_upto(), invoke_block_from_c(), io_puts_ary(), io_wait(), is_not_included(), iseq_build_from_ary_body(), iseq_build_from_ary_exception(), iseq_compile_each(), iseq_data_to_ary(), iseq_load(), iseq_set_arguments(), iseq_set_exception_table(), iseq_set_optargs_table(), iseq_set_sequence(), iso2022jp_check_conv(), iso8601_bas_datetime_cb(), iso8601_ext_datetime_cb(), iso8601_ext_time_cb(), jisx0301_cb(), lgamma_r(), limited_big_rand(), limited_rand(), loaded_feature_path(), local_id_gen(), lshift(), magic_comment_marker(), main(), make_econv_exception(), make_struct(), map_position_value(), match_array(), match_at(), match_begin(), match_end(), match_inspect(), match_inspect_name_iter(), match_offset(), max_by_i(), max_i(), max_ii(), mbc_case_fold(), mbc_to_code(), MD5_Finish(), md5_process(), mime_begin(), mime_begin_strict(), mime_putc(), min_by_i(), min_i(), min_ii(), minmax_by_i(), minmax_i(), minmax_i_update(), minmax_ii(), minmax_ii_update(), mk_ary_of_str(), mon_num(), month_arg(), moreswitches(), mt_state(), multadd(), n2i(), name_add(), name_err_mesg_equal(), new_insn_body(), new_size(), nfc_getc(), nkf_enc_find_index(), nkf_split_options(), nkf_str_caseeql(), node_new_backref(), node_new_cclass_by_codepoint_range(), not_code_range_buf(), nsdr(), num_step(), numchar_getc(), objspace_each_objects(), ole_docinfo_from_type(), ole_invoke(), ole_invoke2(), ole_method_event(), ole_method_params(), ole_method_sub(), ole_methods_from_typeinfo(), ole_methods_sub(), ole_search_event(), ole_search_event_at(), ole_set_safe_array(), ole_type_impl_ole_types(), ole_types_from_typelib(), ole_val_ary2variant_ary(), ole_variables(), ole_variant2val(), oleclass_from_typelib(), olemethod_from_typeinfo(), oletypelib_search_registry(), onig_compile(), onig_name_to_backref_number(), onig_number_of_capture_histories(), onig_region_clear(), onig_region_copy(), onigenc_apply_all_case_fold_with_map(), onigenc_ascii_apply_all_case_fold(), onigenc_get_case_fold_codes_by_str_with_map(), onigenc_mbn_mbc_case_fold(), onigenc_mbn_mbc_to_code(), onigenc_unicode_apply_all_case_fold(), onigenc_unicode_get_case_fold_codes_by_str(), onigenc_unicode_mbc_case_fold(), open_ifs_socket(), open_mime(), opt_enc_index(), optimize_node_left(), options(), or_code_range_buf(), ossl_pkcs7_get_recipient(), ossl_pkcs7_get_signer(), ossl_pkcs7_sym2typeid(), ossl_ssl_get_peer_cert_chain(), ossl_ssl_session_to_pem(), ossl_ssl_shutdown(), ossl_sslctx_add_extra_chain_cert_i(), ossl_sslctx_get_ciphers(), ossl_sslctx_initialize(), ossl_sslctx_set_ciphers(), ossl_sslctx_set_ssl_version(), ossl_sslctx_setup(), ossl_x509_get_extensions(), ossl_x509_set_extensions(), ossl_x509_verify(), ossl_x509crl_get_extensions(), ossl_x509crl_get_revoked(), ossl_x509crl_set_extensions(), ossl_x509crl_set_revoked(), ossl_x509name_to_a(), ossl_x509req_get_attributes(), ossl_x509req_set_attributes(), ossl_x509req_verify(), ossl_x509revoked_get_extensions(), ossl_x509revoked_set_extensions(), ossl_x509stctx_get_chain(), pack_pack(), pack_unpack(), parse_char_class(), parse_main(), parse_posix_bracket(), parser_magic_comment(), parser_set_encode(), parser_yyerror(), path_entries(), path_s_glob(), PEM_def_callback(), permute0(), pipe_open(), pow5mult(), power_cache_get_power(), power_cache_get_power0(), power_cache_init(), process_options(), pty_close_pty(), qpencode(), quad_buf_complement(), r_long(), r_object0(), rand_init(), range_each(), range_step(), rb_ary_and(), rb_ary_assoc(), rb_ary_collect(), rb_ary_collect_bang(), rb_ary_combination(), rb_ary_count(), rb_ary_cycle(), rb_ary_diff(), rb_ary_drop_while(), rb_ary_each(), rb_ary_each_index(), rb_ary_fill(), rb_ary_includes(), rb_ary_index(), rb_ary_initialize(), rb_ary_join(), rb_ary_new3(), rb_ary_or(), rb_ary_permutation(), rb_ary_product(), rb_ary_rassoc(), rb_ary_repeated_combination(), rb_ary_repeated_permutation(), rb_ary_rindex(), rb_ary_sample(), rb_ary_select(), rb_ary_shuffle_bang(), rb_ary_take_while(), rb_ary_transpose(), rb_ary_uniq(), rb_ary_uniq_bang(), rb_ary_zip(), rb_big_and(), rb_big_aref(), rb_big_neg(), rb_big_or(), rb_big_pack(), rb_big_unpack(), rb_big_xor(), rb_check_argv(), rb_check_backtrace(), rb_cstr_to_inum(), rb_dlcfunc_call(), rb_dvar_defined(), rb_econv_add_transcoder_at(), rb_econv_binmode(), rb_econv_close(), rb_econv_init_by_convpath(), rb_econv_memsize(), rb_econv_open(), rb_econv_open_by_transcoder_entries(), rb_enc_find_index(), rb_enc_get_index(), rb_env_clear(), rb_f_global_variables(), rb_f_kill(), rb_f_local_variables(), rb_f_p(), rb_f_select(), rb_feature_p(), rb_file_join(), rb_find_file_ext_safe(), rb_find_file_safe(), rb_fix_rshift(), rb_funcall(), rb_get_expanded_load_path(), rb_get_next_signal(), rb_get_values_at(), rb_hash_s_create(), rb_hash_values_at(), rb_id2str(), rb_insns_name_array(), rb_int_pred(), rb_int_succ(), rb_intern3(), rb_io_print(), rb_io_puts(), rb_iseq_build_for_ruby2cext(), rb_iseq_build_from_ary(), rb_iseq_disasm(), rb_iseq_parameters(), rb_iseq_translate_threaded_code(), rb_ivar_count(), rb_ivar_set(), rb_local_defined(), rb_memsearch_qs(), rb_memsearch_qs_utf8(), rb_mod_attr_accessor(), rb_mod_attr_reader(), rb_mod_attr_writer(), rb_mod_include(), rb_mod_modfunc(), rb_mod_remove_method(), rb_mod_undef_method(), rb_obj_extend(), rb_obj_inspect(), rb_objspace_call_finalizer(), rb_objspace_free(), rb_proc_exec_n(), rb_random_bytes(), rb_reg_match_last(), rb_reg_preprocess_dregexp(), rb_reg_s_union(), rb_run_exec_options_err(), rb_scan_args(), rb_stat_inspect(), rb_str_count(), rb_str_delete_bang(), rb_str_each_byte(), rb_str_each_char(), rb_str_end_with(), rb_str_format(), rb_str_include(), rb_str_slice_bang(), rb_str_split_m(), rb_str_squeeze_bang(), rb_str_start_with(), rb_strftime_with_timespec(), rb_struct_aref(), rb_struct_aref_id(), rb_struct_aset(), rb_struct_aset_id(), rb_struct_each(), rb_struct_each_pair(), rb_struct_getmember(), rb_struct_new(), rb_struct_s_def(), rb_struct_select(), rb_struct_set(), rb_syck_emitter_handler(), rb_syswait(), rb_trans_conv(), rb_uint2big(), rb_vm_bugreport(), rb_vm_get_sourceline(), rb_vm_mark(), rb_vmdebug_env_dump_raw(), rb_w32_fdclr(), rb_w32_map_errno(), rb_w32_strerror(), rb_yield_values(), rb_zlib_crc_table(), readline_attempted_completion_function(), recursive_cmp(), recursive_eql(), recursive_equal(), recursive_hash(), reduce0(), reg_named_captures_iter(), rehash(), reinit(), rfc2822_cb(), rfc3339_cb(), RMD160_Finish(), RMD160_Update(), rpermute0(), rt_complete_frags(), ruby_dtoa(), ruby_float_step(), ruby_set_argv(), ruby_setenv(), ruby_strtod(), run_exec_close(), run_exec_dup2(), run_exec_dup2_child(), run_exec_open(), run_finalizer(), s2b(), scan_env_add_mem_entry(), scan_env_clear(), scan_once(), seepair(), select_end(), select_internal(), set_arg0(), set_bm_backward_skip(), set_bm_skip(), set_const_visibility(), set_method_visibility(), set_optimize_map_info(), setup_args(), setup_tree(), SHA1_Finish(), SHA1_Update(), SHA256_End(), SHA384_End(), SHA512_End(), signbit(), sockopt_bool(), sockopt_int(), sockopt_s_bool(), sockopt_s_int(), sort_by_i(), st_add_direct(), st_cleanup_safe(), st_clear(), st_delete(), st_delete_safe(), st_foreach(), st_get_key(), st_hash_uint(), st_insert(), st_insert2(), st_lookup(), STACK_OF(), start_document(), str_exist_check_with_esc(), strdup_with_null(), string2hex(), string_to_c_internal(), strscan_aref(), strscan_rest_size(), strscan_set_pos(), stub_sysinit(), swallow(), syck_base64dec(), syck_base64enc(), syck_const_find(), syck_emit_indent(), syck_emit_item(), syck_emitter_escape(), syck_genericresolver_node_import(), syck_map_initialize(), syck_map_value_set(), syck_node_mark(), syck_node_transform(), syck_resolver_node_import(), syck_scan_scalar(), syck_seq_value_set(), syck_tagcmp(), sycklex_bytecode_utf8(), sycklex_yaml_utf8(), test_check(), test_fdset(), tgamma(), time_mdump(), time_mload(), time_timespec(), tr_setup_table(), tr_trans(), trans_sweep(), type_cclass_hash(), typeinfo_from_ole(), typelib_file_from_typelib(), unpack_entries(), update_char_offset(), update_string_node_case_fold(), username_completion_proc_call(), vm_call0(), vm_call_method(), vm_callee_setup_arg_complex(), vm_exec(), vm_expandarray(), vm_make_env_each(), vm_push_frame(), vm_setup_method(), vm_throw(), vm_yield_setup_block_args(), vm_yield_setup_block_args_complex(), VpAddSub(), VpAlloc(), VpCtoV(), VpDivd(), VpDtoV(), VpFormatSt(), VpMult(), VpNmlz(), VpSzMantissa(), vtable_included(), vtable_tblcpy(), w_long(), w_object(), w_objivar(), warn_deprecated(), warn_unused_var(), X509_CRL_sort(), xmlschema_datetime_cb(), xmlschema_time_cb(), xmlschema_trunc_cb(), yaml_org_handler(), zip_ary(), and zip_i().
|
static |
Definition at line 55 of file bigdecimal.c.
Referenced by check_rounding_mode(), and Init_bigdecimal().
|
static |
Definition at line 44 of file bigdecimal.c.
Referenced by Init_bigdecimal(), and VpGetException().
|
static |
Definition at line 46 of file bigdecimal.c.
Referenced by Init_bigdecimal(), and VpGetPrecLimit().
|
static |
Definition at line 45 of file bigdecimal.c.
Referenced by Init_bigdecimal(), and VpGetRoundMode().
|
static |
Definition at line 57 of file bigdecimal.c.
Referenced by check_rounding_mode(), and Init_bigdecimal().
|
static |
Definition at line 56 of file bigdecimal.c.
Referenced by check_rounding_mode(), and Init_bigdecimal().
|
static |
Definition at line 52 of file bigdecimal.c.
Referenced by check_rounding_mode(), and Init_bigdecimal().
|
static |
Definition at line 49 of file bigdecimal.c.
Referenced by check_rounding_mode(), and Init_bigdecimal().
|
static |
Definition at line 60 of file bigdecimal.c.
Referenced by Init_bigdecimal(), is_one(), and is_zero().
|
static |
Definition at line 58 of file bigdecimal.c.
Referenced by check_rounding_mode(), and Init_bigdecimal().
|
static |
Definition at line 53 of file bigdecimal.c.
Referenced by check_rounding_mode(), and Init_bigdecimal().
|
static |
Definition at line 54 of file bigdecimal.c.
Referenced by check_rounding_mode(), and Init_bigdecimal().
|
static |
Definition at line 51 of file bigdecimal.c.
Referenced by check_rounding_mode(), and Init_bigdecimal().
|
static |
Definition at line 59 of file bigdecimal.c.
Referenced by GetVpValueWithPrec(), and Init_bigdecimal().
|
static |
Definition at line 50 of file bigdecimal.c.
Referenced by check_rounding_mode(), and Init_bigdecimal().
|
static |
Definition at line 48 of file bigdecimal.c.
Referenced by check_rounding_mode(), and Init_bigdecimal().
VP_EXPORT int |
Definition at line 4911 of file bigdecimal.c.
Referenced by appendline(), ary2ptr_dispparams(), big_lshift(), big_rshift(), bigadd_int(), bigand_int(), biglsh_bang(), bigor_int(), bigrsh_bang(), bigsub_int(), bigxor_int(), bitset_and(), bitset_copy(), bitset_invert(), bitset_invert_to(), bitset_is_empty(), bitset_or(), bn_rand_range(), BSD_vfprintf(), bsock_setsockopt(), c_civil_to_jd(), c_jd_to_civil(), c_jd_to_weeknum(), calc_tm_yday(), chkpage(), compile_array_(), compile_massign(), compile_warn_print(), concat_left_node_opt_info(), d2b(), d_lite_plus(), d_lite_rshift(), date__strptime_internal(), date_strftime_with_tmx(), date_zone_to_diff(), day_num(), decode_year(), dlhandle_sym(), do_ioctl(), do_select(), double2timeval(), enc_names_i(), enc_set_filesystem_encoding(), enum_inject(), fcntl(), fdbm_delete(), fdbm_delete_if(), fdbm_empty_p(), fdbm_fetch(), fdbm_has_key(), fdbm_has_value(), fdbm_key(), fdbm_store(), ffs(), fgdbm_delete_if(), fgdbm_has_key(), fgdbm_store(), fill_cbuf(), fill_random_seed(), finish_writeconv(), flo_to_s(), fun_sio_from_gb18030(), fun_sio_to_gb18030(), gc_profile_result(), get_char_length_tree1(), gmtime_with_leapsecond(), if(), insn_operand_intern(), io_binwrite(), io_encname_bom_p(), io_fillbuf(), io_flush_buffer_sync(), io_ungetbyte(), iseq_compile_each(), iseq_set_arguments(), iseq_set_exception_table(), iseq_set_local_table(), marshal_load(), match_at(), mktime_do(), mon_num(), nogvl_copy_stream_write(), obj_ivar_each(), offset_to_sec(), ole_invoke2(), onig_bbuf_init(), onig_node_str_cat(), onig_scan_unsigned_number(), onigenc_ascii_apply_all_case_fold(), onigenc_with_ascii_strncmp(), options(), ossl_dsa_to_der(), ossl_rsa_to_der(), overlapped_socket_io(), pack_pack(), pack_unpack(), parser_nextc(), parser_parse_string(), parser_yyerror(), process_options(), r_bytes0(), r_object0(), rand_init(), random_load(), rb_enc_aliases_enc_i(), rb_enc_mbclen(), rb_f_system(), rb_file_expand_path_internal(), rb_fix2str(), rb_gdbm_delete(), rb_gdbm_fetch2(), rb_gdbm_nextkey(), rb_getaddrinfo(), rb_getnameinfo(), rb_id2str(), rb_io_getline_fast(), rb_io_ungetc(), rb_iseq_translate_threaded_code(), rb_locale_charmap(), rb_num_to_uint(), rb_str_buf_cat_escaped_char(), rb_str_drop_bytes(), rb_str_format(), rb_str_inspect(), rb_strftime_with_timespec(), rb_sysopen_internal(), rb_syswait(), rb_w32_getppid(), rb_w32_map_errno(), rb_w32_select_with_thread(), rb_w32_strerror(), rb_wait_for_single_fd(), read_buffered_data(), recvmsg(), reduce_nodes_gen(), rsock_connect(), rsock_s_accept(), ruby_dtoa(), ruby_each_words(), ruby_scan_hex(), ruby_scan_oct(), ruby_snprintf(), ruby_strtod(), ruby_vsnprintf(), scan_unsigned_hexadecimal_number(), sendmsg(), set_bm_backward_skip(), set_bm_skip(), set_optimize_exact_info(), set_optimize_map_info(), SHA256_Final(), SHA256_Update(), SHA512_Last(), SHA512_Update(), st_hash(), str_end_cmp(), str_end_hash(), swallow(), switch(), syck_base64dec(), syck_emit_tag(), syck_emitter_mark_node(), sycklex_yaml_utf8(), thread_fd_close_i(), time_mdump(), time_mload(), time_timespec(), timelocalw(), to_ascii(), tr_trans(), transcode_restartable0(), type_cclass_hash(), udp_send(), utf16le_mbc_enc_len(), vm_define_method(), vm_invoke_block(), vm_throw(), w_float(), w_long(), w_object(), and warn_print().
Definition at line 5519 of file bigdecimal.c.
Definition at line 5519 of file bigdecimal.c.
Referenced by BigDecimal_div2(), f_mul(), for(), and safe_mul_p().
BDIGIT m |
Definition at line 4946 of file bigdecimal.c.
Referenced by AddExponent(), BigDecimal_load(), BigMath_s_exp(), BigMath_s_log(), bm_init_skip(), c_gregorian_last_day_of_month(), c_gregorian_to_yday(), c_jd_to_civil(), c_julian_last_day_of_month(), c_julian_to_yday(), c_valid_gregorian_p(), c_valid_julian_p(), calc_wday(), convert_type(), d_lite_rshift(), date__strptime_internal(), date_s_civil(), date_s_today(), datetime_s_civil(), datetime_s_now(), delpair(), distance_multiply(), eval_string_with_cref(), extract_fd(), fun_so_eucjp2sjis(), get_c_civil(), get_c_time(), get_s_civil(), glob_make_pattern(), if(), Init_dln(), Init_fd_setsize(), int_pair_to_real_inclusive(), int_sip_final(), int_sip_pre_update(), int_sip_update(), is_special_global_name(), match(), method_hash(), murmur(), of2str(), power_cache_get_power(), range_dumper(), rb_ary_product(), rb_barrier_wait(), rb_enc_symname2_p(), rb_intern3(), rb_io_modestr_fmode(), rb_memsearch_qs(), rb_memsearch_qs_utf8(), rb_memsearch_ss(), rb_mod_modfunc(), rb_w32_asynchronize(), reg_compile_gen(), ruby_qsort(), s3e(), sip_hash24(), string_to_c_internal(), string_to_r_internal(), strio_init(), subs(), switch(), syck_alloc_map(), syck_map_add(), syck_map_assign(), syck_map_empty(), syck_map_read(), syck_seq_assign(), time_to_date(), time_to_datetime(), valid_civil_sub(), vm_callee_setup_arg_complex(), vm_yield_setup_block_args(), vm_yield_setup_block_args_complex(), and VpSzMantissa().
Definition at line 1141 of file bigdecimal.c.
Referenced by BigDecimal_abs(), BigDecimal_add(), BigDecimal_ceil(), BigDecimal_divremain(), BigDecimal_DoDivmod(), BigDecimal_fix(), BigDecimal_floor(), BigDecimal_frac(), BigDecimal_mult(), BigDecimal_round(), BigDecimal_sqrt(), BigDecimal_sub(), BigDecimal_truncate(), GetAddSubPrec(), VpAlloc(), and VpComp().
Definition at line 5519 of file bigdecimal.c.
Referenced by add_char_amb_opt_map_info(), add_code_range_to_buf0(), add_ctype_to_cc_by_range(), AddExponent(), and_code_range1(), argf_lineno_setter(), ary_take_first_or_last(), autoload_delete(), big_op(), big_split(), BigDecimal_div2(), BigDecimal_power(), BigDecimal_sqrt(), BigMath_s_exp(), BigMath_s_log(), bigmul1_balance(), bigmul1_karatsuba(), bigmul1_single(), bigmul1_toom3(), bn_rand_range(), BSD_vfprintf(), buf_apply(), buf_output_all(), buf_output_char(), check_exec_redirect(), chkpage(), class2path(), classname(), compile_anchor_node(), compile_length_tree(), compile_quantifier_node(), compile_snprintf(), compile_tree(), compile_tree_n_times(), cont_memsize(), copy_stream_fallback_body(), coverage(), curses_curs_set(), d_lite_next_day(), d_lite_next_month(), d_lite_next_year(), d_lite_prev_day(), d_lite_prev_month(), d_lite_prev_year(), date__strptime_internal(), date_strftime_with_tmx(), decorate_convpath(), default_proc_arity_check(), delpair(), dt_lite_iso8601(), dt_lite_jisx0301(), each_with_index_i(), econv_putback(), enc_arg(), entry_repeat_range(), enum_cycle(), enum_first(), err_snprintf(), escape_xml_attr_quote_finish(), expand_case_fold_string(), f_divide(), f_round_common(), fc_path(), fdbm_delete_if(), fgdbm_delete_if(), fill_random_seed(), first_i(), fitpair(), float_decode_internal(), float_rationalize(), float_to_r(), fole_missing(), fole_s_free(), from_utf8_mac_finish(), fsdbm_delete_if(), fun_so_escape_xml_attr_quote(), fun_so_from_utf8_mac(), gb18030_mbc_to_code(), gc_mark_locations(), get_head_value_node(), getpair(), GetPositiveInt(), gmtimew_noleapsecond(), gzfile_get16(), gzfile_get32(), gzfile_reader_rewind(), gzreader_charboundary(), gzreader_gets(), gzreader_skip_linebreaks(), iconv_iconv(), Init_ossl_rsa(), int_round(), int_round_0(), int_sip_round(), io_binwrite(), io_bufread(), io_getc(), io_getpartial(), io_nread(), io_read(), io_ready_p(), io_wait(), io_write(), is_console(), is_readable_console(), is_readable_pipe(), iseq_compile_each(), iso8601_timediv(), join_argv(), loaded_feature_path(), lshift(), make_econv_exception(), make_errno_exc(), make_errno_exc_str(), make_exception(), match_at(), mbc_to_code(), memmove(), method_arity_m(), minmax_by_i(), minmax_i(), minmax_i_update(), minmax_ii(), minmax_ii_update(), minus_dd(), must_not_be_anonymous(), new_code_range(), next_setup(), nl_langinfo_codeset(), node_new_cclass_by_codepoint_range(), node_newnode(), not_code_range_buf(), nsdr(), nucomp_expt(), nucomp_hash(), nurat_hash(), offset_to_sec(), ole_invoke(), ole_mb2wc(), ole_set_safe_array(), onig_free_node_list(), onig_is_in_code_range(), onig_match(), onig_name_to_backref_number(), onig_node_free(), onig_node_list_add(), onig_number_of_capture_histories(), onig_region_resize(), onig_search(), onigenc_mbn_mbc_to_code(), onigenc_strlen(), onigenc_strlen_null(), onigenc_unicode_get_case_fold_codes_by_str(), open_key_args(), optimize_node_left(), ossl_rand_bytes(), ossl_rand_egd_bytes(), ossl_rand_pseudo_bytes(), parse_frag_cb(), parser_magic_comment(), parser_set_encode(), parser_tokspace(), parser_whole_match_p(), path_binread(), path_each_line(), path_open(), path_read(), path_readlines(), path_s_glob(), path_sysopen(), permute0(), proc_exec_v(), proc_options(), process_sflag(), putpair(), qpencode(), quorem(), r_bytes0(), r_symreal(), raise_method_missing(), range_first(), rb_ary_combination(), rb_ary_compact_bang(), rb_ary_cycle(), rb_ary_new3(), rb_ary_permutation(), rb_ary_pop(), rb_ary_product(), rb_ary_repeated_combination(), rb_ary_repeated_permutation(), rb_ary_sample(), rb_ary_shift_m(), rb_big_minus(), rb_big_plus(), rb_class_path(), rb_const_remove(), rb_cstr_to_dbl(), rb_deflate_params(), rb_econv_add_transcoder_at(), rb_econv_binmode(), rb_econv_open_by_transcoder_entries(), rb_econv_putback(), rb_enc_codelen(), rb_enc_mbclen(), rb_enc_precise_mbclen(), rb_enc_uint_chr(), rb_feature_p(), rb_file_expand_path_internal(), rb_file_s_basename(), rb_file_s_chmod(), rb_file_s_chown(), rb_file_s_unlink(), rb_file_s_utime(), rb_funcall(), rb_hash_reject_bang(), rb_hash_select_bang(), rb_int2big(), rb_io_each_codepoint(), rb_io_sysread(), rb_io_syswrite(), rb_io_write_nonblock(), rb_iseq_disasm(), rb_memsearch(), rb_memsearch_qs(), rb_memsearch_qs_utf8(), rb_memsearch_ss(), rb_mod_remove_cvar(), rb_node_newnode(), rb_obj_remove_instance_variable(), rb_parser_calloc(), rb_parser_free(), rb_parser_malloc(), rb_parser_realloc(), rb_reg_expr_str(), rb_reg_quote(), rb_reg_s_last_match(), rb_str_capitalize_bang(), rb_str_count(), rb_str_downcase_bang(), rb_str_dump(), rb_str_each_char(), rb_str_each_codepoint(), rb_str_each_line(), rb_str_format(), rb_str_inspect(), rb_str_justify(), rb_str_lstrip_bang(), rb_str_split_m(), rb_str_swapcase_bang(), rb_str_times(), rb_str_upcase_bang(), rb_str_upto(), rb_strftime_with_timespec(), rb_struct_initialize_m(), rb_syck_emitter_handler(), rb_syck_io_str_read(), rb_uint2big(), rb_vm_bugreport(), rb_yield_values(), rcombinate0(), read_all(), read_buffered_data(), recursive_hash(), reference_count(), remove_begin(), rpermute0(), rsock_bsock_send(), rt_complete_frags(), ruby__sfvwrite(), ruby_enc_find_basename(), ruby_float_step(), ruby_glob0(), ruby_qsort(), ruby_xrealloc2(), run_exec_dup2(), sdbm_hash(), sdbm_open(), seepair(), select_internal(), set_quantifier(), setup_tree(), slow_search(), sock_connect(), sock_connect_nonblock(), sort_1(), sort_2(), splpage(), st_numhash(), stack_double(), str_byte_substr(), str_end_with_asciichar(), str_gsub(), str_node_split_last_char(), str_nth_len(), str_strlen(), strio_each_codepoint(), strio_getline(), struct_alloc(), syck_alloc_map(), syck_alloc_seq(), syck_alloc_str(), syck_defaultresolver_node_import(), syck_genericresolver_node_import(), syck_hdlr_add_anchor(), syck_hdlr_get_anchor(), syck_new_map(), syck_new_seq(), syck_new_str2(), syck_node_transform(), syck_parser_bufsize_set(), syck_resolver_node_import(), sycklex_bytecode_utf8(), sycklex_yaml_utf8(), sym_printable(), test_check(), time_cmp(), timelocalw(), trnext(), udp_send(), unnamed_parameters(), utc_offset_arg(), utf8_to_uv(), VpAddSub(), VpAsgn(), VpDivd(), VpExponent10(), VpPower(), VpSetRoundMode(), VpSqrt(), VpSzMantissa(), wdivmod(), xmalloc2_size(), yycompile0(), yyparse(), zip_ary(), and zstream_run().
nf = y->exponent * (ssize_t)BASE_FIG |
Definition at line 5523 of file bigdecimal.c.
Referenced by BigDecimal_limit(), BigDecimal_to_i(), if(), ruby_strtod(), VpAlloc(), and VpFormatSt().
BDIGIT nn |
Definition at line 4946 of file bigdecimal.c.
Referenced by VpSzMantissa().
char* pszSav = psz |
Definition at line 4947 of file bigdecimal.c.
Definition at line 1154 of file bigdecimal.c.
Referenced by add_code_range_to_buf0(), add_ctype_to_cc(), add_ctype_to_cc_by_range(), add_multi_byte_cclass(), add_opcode_option(), add_opcode_rel_addr(), addrinfo_list_new(), and_cclass(), and_code_range1(), and_code_range_buf(), backward_search_range(), bbuf_clone(), big2str_karatsuba(), bigmul1_balance(), BN_nnmod(), bracket(), check_type_tree(), class_instance_method_list(), compile_anchor_node(), compile_cclass_node(), compile_enclose_node(), compile_length_string_node(), compile_length_tree(), compile_option_node(), compile_quantifier_node(), compile_range_repeat_node(), compile_string_node(), compile_tree(), compile_tree_empty_check(), compile_tree_n_times(), convert_type(), do_select(), exc_to_s(), expand_case_fold_make_rem_string(), expand_case_fold_string(), expand_case_fold_string_alt(), f_divide(), f_imul(), fetch_char_property_to_ctype(), fetch_name(), fetch_name_with_level(), fetch_range_quantifier(), fetch_token(), ffs(), finish_writeconv(), fix_minus(), fix_mul(), fix_plus(), fnmatch_helper(), gc_profile_result(), get_c_time(), get_char_length_tree1(), get_max_match_length(), get_min_match_length(), i_apply_case_fold(), i_names(), init_property_list(), Init_RandomSeed(), int_pair_to_real_inclusive(), int_round_0(), int_sip_post_update(), io_binwrite(), io_fillbuf(), io_flush_buffer_sync(), io_getc(), io_unread(), m_ajd(), m_amjd(), make_regexp(), match_at(), mime_begin_strict(), minus_dd(), murmur(), new_code_range(), next_state_class(), next_state_val(), nogvl_copy_stream_read_write(), not_code_range_buf(), nucomp_expt(), onig_compile(), onig_match(), onig_names_free(), onig_new(), onig_new_with_source(), onig_new_without_alloc(), onig_parse_make_tree(), onig_region_new(), onig_region_resize_clear(), onig_region_set(), onig_search(), onigenc_apply_all_case_fold_with_map(), onigenc_ascii_apply_all_case_fold(), onigenc_property_list_add_property(), onigenc_property_list_init(), onigenc_unicode_apply_all_case_fold(), optimize_node_left(), or_cclass(), or_code_range_buf(), overlapped_socket_io(), parse_branch(), parse_char_class(), parse_char_property(), parse_enclose(), parse_exp(), parse_posix_bracket(), parse_regexp(), parse_subexp(), permute0(), r_le(), r_lt(), rand_int(), rand_range(), rand_start(), range_values(), rb_ary_permutation(), rb_ary_repeated_permutation(), rb_enc_codepoint_len(), rb_f_rand(), rb_f_srand(), rb_io_each_codepoint(), rb_io_s_pipe(), rb_iseq_parameters(), rb_random_bytes(), rb_reg_prepare_re(), rb_reset_random_seed(), rb_str_casecmp(), rb_str_strip_bang(), rb_thread_call_with_gvl(), rb_w32_accept(), rb_w32_bind(), rb_w32_connect(), rb_w32_gethostbyaddr(), rb_w32_gethostbyname(), rb_w32_gethostname(), rb_w32_getpeername(), rb_w32_getprotobyname(), rb_w32_getprotobynumber(), rb_w32_getservbyname(), rb_w32_getservbyport(), rb_w32_getsockname(), rb_w32_getsockopt(), rb_w32_ioctlsocket(), rb_w32_listen(), rb_w32_select_with_thread(), rb_w32_setsockopt(), rb_w32_shutdown(), rb_wait_for_single_fd(), rcombinate0(), rpermute0(), ruby_qsort(), select_single(), set_optimize_exact_info(), set_optimize_info_from_tree(), set_rawmode(), set_ttymode(), setup_look_behind(), setup_tree(), sock_s_getnameinfo(), socketpair_internal(), split_second(), str_dup(), strcat_capa(), strcat_capa_from_static(), strdup_with_null(), string_to_c_internal(), time_usec(), tr_trans(), update_string_node_case_fold(), valid_civil_p(), valid_commercial_p(), valid_ordinal_p(), valid_weeknum_p(), vm_yield_setup_block_args(), vm_yield_setup_block_args_complex(), wadd(), wdiv(), wdivmod(), wmod(), wsplit_p(), wsub(), and X509_CRL_sort().
VALUE rb_cBigDecimal |
Definition at line 41 of file bigdecimal.c.
Referenced by BigDecimal_global_new(), Init_bigdecimal(), and VpCreateRbObject().
VALUE rb_mBigMath |
Definition at line 42 of file bigdecimal.c.
Referenced by Init_bigdecimal().
Definition at line 1189 of file bigdecimal.c.
Referenced by addrinfo_mload(), allocate_converted_string(), BigDecimal_DoDivmod(), call_getaddrinfo(), econv_primitive_convert(), fc_i(), fill_cbuf(), finish_writeconv(), gc_lazy_sweep(), gzfile_getc(), gzreader_gets(), init_inetsock_internal(), ip_s_getaddress(), make_addrinfo(), pack_pack(), pty_getpty(), rb_econv_convert0(), rb_econv_substr_append(), rb_getaddrinfo(), rb_str_crypt(), rb_str_justify(), rb_trans_conv(), rsock_getaddrinfo(), select_internal(), sock_s_getaddrinfo(), sock_s_getnameinfo(), sock_s_pack_sockaddr_in(), stack_chunk_alloc(), trans_sweep(), transcode_restartable(), udp_bind(), udp_connect_internal(), udp_send(), window_setscrreg(), and wrename().
return |
Definition at line 5664 of file bigdecimal.c.
shift = BASE1 |
Definition at line 4946 of file bigdecimal.c.
Referenced by nkf_each_char_to_hex(), r_object0(), rb_big_aref(), rb_big_lshift(), rb_big_rshift(), and ruby_brace_expand().
BDIGIT shifter |
Definition at line 5520 of file bigdecimal.c.
Definition at line 5520 of file bigdecimal.c.
Referenced by add64_to(), addrinfo_mload(), argf_init(), ary2ptr_dispparams(), ary_add_hash_by(), ary_reject(), ary_reject_bang(), Bfree(), bigsqr_fast(), bsock_setsockopt(), case_when_optimizable_literal(), CHECK_INTEGER(), chunk_ii(), cn_i(), coerce_rescue(), cos_i(), cparse_params_mark(), cto_i(), d_lite_hash(), dir_s_glob(), each_cons_i(), each_slice_i(), econv_convpath(), econv_opts(), econv_primitive_convert(), enumerator_feed(), env_select(), establishShell(), extract_binmode(), fdbm_select(), fetch_escaped_value(), fgdbm_select(), fsdbm_select(), gmtimew_noleapsecond(), initialize_params(), int_pow(), int_sip_dump(), is_not_included(), iseq_build_from_ary_exception(), iseq_set_sequence(), JSON_parse_array(), JSON_parse_object(), lexer_i(), lexer_iter(), loggamma(), mark_current_machine_context(), mark_locations_array(), marshal_load(), match_inspect(), math_lgamma(), max_by_i(), method_inspect(), min_by_i(), mnew(), more_char(), n2i(), new_insn_body(), next_state_val(), nucomp_hash(), num_exact(), nurat_hash(), objspace_each_objects(), ole_invoke(), ole_invoke2(), ole_propertyput(), open_dir_handle(), open_key_args(), os_obj_of_i(), ossl_sslctx_set_ciphers(), pack_pack(), pack_unpack(), parse_char_class(), parser_nextc(), path2class(), path2module(), proc_options(), process_sflag(), r_byte(), r_entry0(), r_leave(), r_object0(), racc_cparse(), racc_yyparse(), rand_range(), random_rand(), range_dumper(), range_each_func(), range_include(), range_init(), range_step(), rb_ary_and(), rb_ary_assoc(), rb_ary_cmp(), rb_ary_count(), rb_ary_delete(), rb_ary_fill(), rb_ary_or(), rb_ary_rassoc(), rb_ary_select_bang(), rb_ary_uniq(), rb_ary_uniq_bang(), rb_check_convert_type(), rb_check_to_integer(), rb_const_remove(), rb_convert_type(), rb_econv_asciicompat_encoding(), rb_econv_prepare_options(), rb_f_rand(), rb_feature_p(), rb_file_expand_path_internal(), rb_hash_s_create(), rb_io_extract_encoding_option(), rb_io_extract_modeenc(), rb_mod_to_s(), rb_num2fix(), rb_num_to_uint(), rb_obj_remove_instance_variable(), rb_print_undef(), rb_proc_exec(), rb_proc_exec_n(), rb_random_real(), rb_reg_s_union(), rb_reg_s_union_m(), rb_stat_inspect(), rb_str_format(), rb_str_to_dbl(), rb_str_to_inum(), rb_time_unmagnify_to_float(), rb_to_integer(), rb_w32_aspawn_flags(), rb_w32_spawn(), rb_yield_splat(), read_all(), read_digits(), recursive_cmp(), recursive_hash(), reduce0(), rotl64_swap(), rotl64_to(), rsock_sockaddr_string_value(), RUBY_ALIAS_FUNCTION(), ruby_executable_node(), search_convpath_i(), set_const_visibility(), sockopt_data(), sockopt_inspect(), sort_by_i(), st_hash_uint(), string_to_r_internal(), syck_genericresolver_node_import(), syck_parser_load_documents(), syck_resolver_node_import(), time_mdump(), time_round(), time_to_r(), timelocalw(), total_i(), tr_find(), vm_expandarray(), VpAlloc(), vtdate2rbtime(), vtm_add_offset(), w_object(), warn_unused_var(), wstati64(), xor64_to(), yaml_org_handler(), zip_i(), and zone_str().
|
static |
Definition at line 1138 of file bigdecimal.c.
VP_EXPORT void |
Definition at line 4944 of file bigdecimal.c.
Referenced by argf_next_argv(), CHECK_INTEGER(), chfunc(), date_strftime_with_tmx(), dlhandle_sym(), dln_load(), get_device_once(), get_iconv_opt_i(), getpage(), init_ext_call(), Init_ISeq(), Init_tcltklib(), Init_Thread(), Init_VM(), iseq_build_from_ary_body(), kill(), make_io_deferred(), makroom(), ossl_asn1_get_asn1type(), parse_exp(), parser_yylex(), putpair(), random_rand(), rb_file_load_ok(), rb_singleton_class(), rb_strftime_with_timespec(), rb_w32_getpid(), rb_write_error2(), RMD160_Finish(), RMD160_Update(), sdbm_close(), sdbm_firstkey(), sdbm_prep(), sdbm_store(), SHA1_Transform(), SHA1_Update(), slot_sweep(), splpage(), and str_is_number().
|
static |
Definition at line 3113 of file bigdecimal.c.
Referenced by VpOne().
|
static |
Definition at line 3114 of file bigdecimal.c.