Searched refs:rb_num2long (Results 1 – 14 of 14) sorted by relevance
43 @s.rb_num2long(obj).should == 298 lambda { @s.rb_num2long(nil) }.should raise_error(TypeError)102 @s.rb_num2long(4.2).should == 4106 @s.rb_num2long(0x7fff_ffff).should == 0x7fff_ffff110 @s.rb_num2long(5).should == 5115 @s.rb_num2long(-1).should == -1119 @s.rb_num2long(-2147442171).should == -2147442171129 @s.rb_num2long(-1).should == -1133 @s.rb_num2long(-9223372036854734331).should == -9223372036854734331138 @s.rb_num2long(0xffff_ffff_ffff_ffff+1)[all …]
74 return INT2NUM(rb_num2long(num)); in numeric_spec_rb_int2num()80 return LONG2NUM(rb_num2long(num)); in numeric_spec_rb_num2long()
2844 rb_num2long(VALUE val) in rb_num2long() function2952 long num = rb_num2long(val); in rb_num2int()2961 long num = FIXNUM_P(val)?FIX2LONG(val):rb_num2long(val); in rb_fix2int()2994 return rb_num2long(val); in rb_num2int()3038 long num = rb_num2long(val); in rb_num2short()3047 long num = FIXNUM_P(val)?FIX2LONG(val):rb_num2long(val); in rb_fix2short()3084 v = rb_num2long(val); in rb_num2fix()
76 # define rb_num2long rb_num2long_stub macro307 # define rb_num2long dll_rb_num2long macro
310 data->ret = rb_num2long(data->val); in rb_num2long_wrapper()
309 * rb_num2long returns a long instead of SIGNED_VALUE.
15536 * numeric.c (rb_num2long): use to_int, not to_i.16144 * numeric.c (rb_num2long): use rb_Integer() instead of independent20791 * numeric.c (rb_num2long): no implicit conversion from boolean.21014 * numeric.c (rb_num2long): missing/vsnprintf.c does not support
15645 * numeric.c (rb_num2long): Don't use SIGNED_VALUE uselessly.15812 (rb_num2long): Use LONG_MIN_MINUS_ONE_IS_LESS_THAN.
9182 * numeric.c (rb_num2long): Returns a long.
10771 * numeric.c (rb_num2fix): result of rb_num2long is SIGNED_VALUE.13772 * numeric.c (rb_num2long): accept LONG_MAX < x < LONG_MAX+1 and34040 * numeric.c (flo_to_s, rb_num2long, rb_num2ll): ditto.70180 * numeric.c (rb_num2long, rb_num2ulong): ditto.89152 Time.local/Time.gm as an usec, and NUM2LONG(rb_num2long for Float)
667 long rb_num2long(VALUE);675 return rb_num2long(x); in rb_num2long_inline()
263 #define XEN_TO_C_INT(a) rb_num2long(a)