#include "ruby.h"
#include "env.h"
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <float.h>
Go to the source code of this file.
|
|
Definition at line 57 of file numeric.c. Referenced by Init_Numeric(). |
|
|
Definition at line 63 of file numeric.c. Referenced by Init_Numeric(), and num_step(). |
|
|
Definition at line 60 of file numeric.c. Referenced by Init_Numeric(). |
|
|
Definition at line 42 of file numeric.c. Referenced by Init_Numeric(). |
|
|
Definition at line 54 of file numeric.c. Referenced by Init_Numeric(). |
|
|
Definition at line 48 of file numeric.c. Referenced by Init_Numeric(). |
|
|
Definition at line 39 of file numeric.c. Referenced by Init_Numeric(). |
|
|
Definition at line 51 of file numeric.c. Referenced by Init_Numeric(). |
|
|
Definition at line 45 of file numeric.c. Referenced by Init_Numeric(). |
|
|
Definition at line 33 of file numeric.c. Referenced by Init_Numeric(). |
|
|
Definition at line 36 of file numeric.c. Referenced by Init_Numeric(). |
|
|
Definition at line 109 of file numeric.c. References id_coerce, rb_funcall(), and VALUE. Referenced by do_coerce(). |
|
|
Definition at line 116 of file numeric.c. References Qnil, rb_eTypeError, rb_inspect(), rb_obj_classname(), rb_raise(), rb_special_const_p(), RSTRING, and VALUE. |
|
||||||||||||||||
|
Definition at line 130 of file numeric.c. References coerce_body(), Qfalse, Qtrue, RARRAY, rb_eTypeError, rb_raise(), rb_rescue(), T_ARRAY, TYPE, and VALUE. Referenced by num_uminus(), rb_num_coerce_bin(), rb_num_coerce_cmp(), and rb_num_coerce_relop(). |
|
|
Definition at line 2556 of file numeric.c. References FIX2LONG, LONG2NUM, and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2377 of file numeric.c. References FIX2LONG, LONG2NUM, NUM2LONG, rb_big_and(), T_BIGNUM, TYPE, and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2499 of file numeric.c. References CHAR_BIT, FIX2LONG, FIXNUM_P, INT2FIX, NUM2LONG, rb_big_norm(), RBIGNUM, T_BIGNUM, TYPE, and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2245 of file numeric.c. References FIX2LONG, FIXNUM_P, INT2FIX, rb_num_coerce_cmp(), and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2124 of file numeric.c. References FIX2LONG, fixdivmod(), FIXNUM_P, LONG2NUM, rb_num_coerce_bin(), and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2165 of file numeric.c. References FIX2LONG, fixdivmod(), FIXNUM_P, LONG2NUM, rb_assoc_new(), rb_num_coerce_bin(), and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2224 of file numeric.c. References FIX2LONG, FIXNUM_P, num_equal(), Qfalse, Qtrue, and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2292 of file numeric.c. References FIX2LONG, FIXNUM_P, Qfalse, Qtrue, rb_num_coerce_relop(), and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2269 of file numeric.c. References FIX2LONG, FIXNUM_P, Qfalse, Qtrue, rb_num_coerce_relop(), and VALUE. Referenced by Init_Numeric(). |
|
|
Definition at line 2582 of file numeric.c. References FIX2UINT, name, Qnil, rb_id2name(), rb_str_new2(), and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2338 of file numeric.c. References FIX2LONG, FIXNUM_P, Qfalse, Qtrue, rb_num_coerce_relop(), and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2439 of file numeric.c. References CHAR_BIT, fix_rshift(), LONG2FIX, LONG2NUM, NUM2LONG, rb_big_lshift(), rb_int2big(), and VALUE. Referenced by fix_rshift(), and Init_Numeric(). |
|
||||||||||||
|
Definition at line 2315 of file numeric.c. References FIX2LONG, FIXNUM_P, Qfalse, Qtrue, rb_num_coerce_relop(), and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2004 of file numeric.c. References FIX2LONG, FIXNUM_P, LONG2FIX, rb_big_minus(), rb_float_new(), rb_int2big(), rb_num_coerce_bin(), RFLOAT, T_FLOAT, TYPE, and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2146 of file numeric.c. References FIX2LONG, fixdivmod(), FIXNUM_P, LONG2NUM, rb_num_coerce_bin(), and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2037 of file numeric.c. References FIX2LONG, FIXNUM_P, LONG2FIX, rb_big_mul(), rb_float_new(), rb_int2big(), rb_num_coerce_bin(), RFLOAT, T_FLOAT, TYPE, and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2397 of file numeric.c. References FIX2LONG, LONG2NUM, NUM2LONG, rb_big_or(), T_BIGNUM, TYPE, and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 1971 of file numeric.c. References FIX2LONG, FIXNUM_P, LONG2FIX, rb_big_plus(), rb_float_new(), rb_int2big(), rb_num_coerce_bin(), RFLOAT, T_FLOAT, TYPE, and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2191 of file numeric.c. References FIX2LONG, FIXNUM_P, INT2FIX, rb_big_pow(), rb_float_new(), rb_int2big(), rb_num_coerce_bin(), RFLOAT, T_FLOAT, TYPE, and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2104 of file numeric.c. References FIX2LONG, FIXNUM_P, rb_float_new(), rb_num_coerce_bin(), and VALUE. Referenced by Init_Numeric(). |
|
|
Definition at line 2360 of file numeric.c. References FIX2LONG, LONG2NUM, and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2464 of file numeric.c. References CHAR_BIT, FIX2LONG, fix_lshift(), INT2FIX, LONG2FIX, NUM2LONG, RSHIFT, and VALUE. Referenced by fix_lshift(), and Init_Numeric(). |
|
|
Definition at line 2629 of file numeric.c. References INT2FIX, and VALUE. Referenced by Init_Numeric(). |
|
|
Definition at line 2534 of file numeric.c. References FIX2LONG, rb_float_new(), and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||||||
|
Definition at line 1942 of file numeric.c. References FIX2INT, NUM2INT, rb_big2str(), rb_fix2str(), rb_int2big(), rb_scan_args(), and VALUE. Referenced by Init_Numeric(). |
|
|
Definition at line 2604 of file numeric.c. References FIX2UINT, ID, ID2SYM, Qnil, rb_id2name(), and VALUE. Referenced by Init_Numeric(). |
|
|
Definition at line 1889 of file numeric.c. References FIX2LONG, LONG2NUM, and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 2417 of file numeric.c. References FIX2LONG, LONG2NUM, NUM2LONG, rb_big_xor(), T_BIGNUM, TYPE, and VALUE. Referenced by Init_Numeric(). |
|
|
Definition at line 2761 of file numeric.c. References FIX2LONG, Qfalse, Qtrue, and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||||||||||
|
Definition at line 2063 of file numeric.c. References rb_num_zerodiv(). Referenced by fix_div(), fix_divmod(), and fix_mod(). |
|
|
Definition at line 1110 of file numeric.c. References rb_float_new(), RFLOAT, and VALUE. Referenced by Init_Numeric(). |
|
|
Definition at line 1249 of file numeric.c. References FIXABLE, LONG2FIX, rb_dbl2big(), RFLOAT, and VALUE. Referenced by Init_Numeric(), and num_ceil(). |
|
||||||||||||
|
Definition at line 892 of file numeric.c. References FIX2LONG, rb_big2dbl(), rb_dbl_cmp(), rb_num_coerce_cmp(), RFLOAT, T_BIGNUM, T_FIXNUM, T_FLOAT, TYPE, and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 524 of file numeric.c. References rb_assoc_new(), rb_Float(), and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 625 of file numeric.c. References FIX2LONG, rb_big2dbl(), rb_float_new(), rb_num_coerce_bin(), RFLOAT, T_BIGNUM, T_FIXNUM, T_FLOAT, TYPE, and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 715 of file numeric.c. References FIX2LONG, flodivmod(), rb_assoc_new(), rb_big2dbl(), rb_float_new(), rb_num_coerce_bin(), RFLOAT, T_BIGNUM, T_FIXNUM, T_FLOAT, TYPE, and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 822 of file numeric.c. References FIX2LONG, isnan(), num_equal(), Qfalse, Qtrue, rb_big2dbl(), RFLOAT, T_BIGNUM, T_FIXNUM, T_FLOAT, TYPE, and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 1071 of file numeric.c. References isnan(), Qfalse, Qtrue, RFLOAT, T_FLOAT, TYPE, and VALUE. Referenced by Init_Numeric(). |
|
|
Definition at line 1222 of file numeric.c. References FIXABLE, LONG2FIX, rb_dbl2big(), RFLOAT, and VALUE. Referenced by Init_Numeric(), and num_floor(). |
|
||||||||||||
|
Definition at line 961 of file numeric.c. References FIX2LONG, isnan(), Qfalse, Qtrue, rb_big2dbl(), rb_num_coerce_relop(), RFLOAT, T_BIGNUM, T_FIXNUM, T_FLOAT, TYPE, and VALUE. Referenced by Init_Numeric(). |
|
||||||||||||
|
Definition at line 925 of file numeric.c. References FIX2LONG, isnan(), Qfalse, Qtrue, rb_big2dbl(), rb_num_coerce_relop(), RFLOAT, T_BIGNUM, T_FIXNUM, T_FLOAT, TYPE, and VALUE. Referenced by Init_Numeric(). |
|
|
Definition at line 854 of file numeric.c. References INT2FIX, RFLOAT, and VALUE. Referenced by Init_Numeric(). |
|
|
Definition at line 1193 of file numeric.c. References finite(), isinf(), isnan(), Qfalse, Qtrue, RFLOAT, and VALUE. Referenced by Init_Numeric(). |
|
|
Definition at line 1170 of file numeric.c. References INT2FIX, isinf(), Qnil, RFLOAT, and VALUE. Referenced by Init_Numeric(). |
|
|
Definition at line 1149 of file numeric.c. References isnan(), Qfalse, Qtrue, RFLOAT, and VALUE. Referenced by Init_Numeric(). |