Class: Bug::Time
Constant Summary
collapse
- SIZEOF_BDIGIT =
INT2NUM(SIZEOF_BDIGIT)
- BITSPERDIG =
INT2NUM(SIZEOF_BDIGIT * CHAR_BIT)
Constants inherited
from Time
Time::CommonYearMonthDays, Time::LeapYearMonthDays, Time::MonthValue, Time::VERSION, Time::ZoneOffset
Class Method Summary
collapse
Methods inherited from Time
apply_offset, #as_json, force_zone!, httpdate, #httpdate, iso8601, json_create, make_time, month_days, parse, rfc2822, #rfc2822, rfc822, strptime, #to_date, #to_datetime, #to_json, #to_time, xmlschema, #xmlschema, zone_offset, zone_utc?
Class Method Details
.big_divrem_gmp(x, y) ⇒ Object
21
22
23
24
25
|
# File 'ext/-test-/bignum/div.c', line 21
static VALUE
divrem_gmp(VALUE klass, VALUE x, VALUE y)
{
return rb_big_norm(rb_big_divrem_gmp(big(x), big(y)));
}
|
.big_divrem_normal(x, y) ⇒ Object
14
15
16
17
18
|
# File 'ext/-test-/bignum/div.c', line 14
static VALUE
divrem_normal(VALUE klass, VALUE x, VALUE y)
{
return rb_big_norm(rb_big_divrem_normal(big(x), big(y)));
}
|
.big_mul_balance(x, y) ⇒ Object
26
27
28
29
30
|
# File 'ext/-test-/bignum/mul.c', line 26
static VALUE
mul_balance(VALUE klass, VALUE x, VALUE y)
{
return rb_big_norm(rb_big_mul_balance(big(x), big(y)));
}
|
.big_mul_gmp(x, y) ⇒ Object
45
46
47
48
49
|
# File 'ext/-test-/bignum/mul.c', line 45
static VALUE
mul_gmp(VALUE klass, VALUE x, VALUE y)
{
return rb_big_norm(rb_big_mul_gmp(big(x), big(y)));
}
|
.big_mul_karatsuba(x, y) ⇒ Object
32
33
34
35
36
|
# File 'ext/-test-/bignum/mul.c', line 32
static VALUE
mul_karatsuba(VALUE klass, VALUE x, VALUE y)
{
return rb_big_norm(rb_big_mul_karatsuba(big(x), big(y)));
}
|
.big_mul_normal(x, y) ⇒ Object
14
15
16
17
18
|
# File 'ext/-test-/bignum/mul.c', line 14
static VALUE
mul_normal(VALUE klass, VALUE x, VALUE y)
{
return rb_big_norm(rb_big_mul_normal(big(x), big(y)));
}
|
.big_mul_toom3(x, y) ⇒ Object
38
39
40
41
42
|
# File 'ext/-test-/bignum/mul.c', line 38
static VALUE
mul_toom3(VALUE klass, VALUE x, VALUE y)
{
return rb_big_norm(rb_big_mul_toom3(big(x), big(y)));
}
|
.big_sq_fast(x) ⇒ Object
20
21
22
23
24
|
# File 'ext/-test-/bignum/mul.c', line 20
static VALUE
sq_fast(VALUE klass, VALUE x)
{
return rb_big_norm(rb_big_sq_fast(big(x)));
}
|