summaryrefslogtreecommitdiff
path: root/bignum.c
Commit message (Expand)AuthorAgeFilesLines
* add some documents [ci skip]nobu2014-07-281-0/+1
* * internal.h (struct RBignum): Use size_t for len.akr2014-04-191-17/+22
* * numeric.c (rb_num2long): Returns a long.akr2014-04-181-2/+2
* * bignum.c (SIZEOF_BDIGIT): Renamed from SIZEOF_BDIGITS.akr2014-04-131-77/+77
* bignum.c: adjust condtionsnobu2014-03-141-7/+4
* [DOC] add links to `Object#hash`nobu2014-03-141-0/+2
* adjust indent and stylenobu2014-02-271-1/+3
* * bignum.c (bary_mul_precheck): fix a copy-paste error.mame2014-02-211-1/+1
* * internal.h: Rename macro names: RBIGNUM_FOO to BIGNUM_FOO.akr2014-02-151-164/+164
* * bignum.c (rb_big_cmp): Avoid bignum allocation for comparisonakr2014-02-151-7/+11
* * include/ruby/intern.h,akr2014-02-141-118/+0
* [DOC]akr2014-02-111-0/+7
* * bignum.c (rb_big_cmp): Specialize a comparison to zero.akr2014-02-111-1/+6
* * bignum.c (bigxor_int): Apply BIGLO for long in a BDIGIT expression.akr2013-11-241-3/+3
* * include/ruby/defines.h: Don't use int128_t for Bignum.akr2013-11-241-3/+1
* bignum.c: suppress warningnobu2013-11-191-1/+5
* bignum.c, math.c: RB_BIGNUM_TYPE_Pnobu2013-09-071-22/+24
* bignum.c, math.c: type predicatesnobu2013-09-071-133/+91
* bignum.c: split rb_big_fdiv and big_fdivnobu2013-09-071-23/+25
* * bignum.c (GMP_DIV_DIGITS): New macro.akr2013-09-041-3/+98
* * bignum.c (bary_divmod_normal): Reduce temporary array allocations.akr2013-09-041-15/+14
* * bignum.c (rb_big_divrem_normal): Add GC guards.akr2013-09-041-0/+3
* * bignum.c (rb_big_divrem_normal): New function.akr2013-09-041-0/+32
* * bignum.c (bigdivrem_normal): Removed.akr2013-09-041-76/+81
* * bignum.c (bigdivrem): Useless declaration removed.akr2013-09-041-3/+0
* * bignum.c (bigdivrem_normal): Add assertions.akr2013-09-041-0/+3
* * bignum.c (GMP_STR2BIG_DIGITS): New macro.akr2013-09-031-0/+92
* * bignum.c (rb_str2big_poweroftwo): New function.akr2013-09-031-0/+111
* * bignum.c (str2big_scan_digits): Extracted from rb_cstr_to_inum.akr2013-09-031-32/+51
* * bignum.c (bytes_2comp): Define it only for little endianakr2013-09-021-0/+2
* * bignum.c (ISDIGIT): Unused macro removed.akr2013-09-021-3/+0
* * bignum.c (str2big_poweroftwo): Extracted from rb_cstr_to_inum.akr2013-09-021-117/+178
* * bignum.c (Init_Bignum): Define Bignum::GMP_VERSION when GMP is used.akr2013-09-011-0/+4
* * bignum.c (big2str_generic): Reduce arguments.akr2013-09-011-30/+36
* * bignum.c (GMP_BIG2STR_DIGITS): New constant.akr2013-09-011-0/+55
* * bignum.c (bary_mul_gmp): Use mpz_init and mpz_clear instead ofakr2013-09-011-2/+6
* * bignum.c (big2str_base_poweroftwo): Renamed fromakr2013-09-011-28/+54
* * bignum.c (big2str_2bdigits): Renamed from big2str_orig.akr2013-09-011-4/+4
* * bignum.c: Remove BITSPERDIG >= INT_MAX test. The static assertion,akr2013-09-011-4/+1
* * bignum.c (maxpow_in_bdigit): Removed.akr2013-09-011-37/+0
* * numeric.c (rb_fix_bit_length): Moved from bignum.c.akr2013-09-011-41/+0
* [DOC]akr2013-09-011-0/+4
* * internal.h (bit_length): Moved from bignum.c.akr2013-09-011-126/+0
* * bignum.c (bit_length): Renamed from bitsize.akr2013-08-311-11/+11
* * bignum.c (rb_big_bit_length): New method.akr2013-08-311-0/+110
* * bignum.c: Use GMP to accelerate big Bignum multiplication.akr2013-08-311-2/+60
* * bignum.c (BARY_SHORT_MUL): Renamed from BARY_MUL1.akr2013-08-241-7/+7
* * bignum.c (rb_big2str1): Make an expression more explicit.akr2013-08-181-1/+1
* * bignum.c (rb_big2str1): Use power_level instead of bitsize(xn).akr2013-08-171-1/+1
* * bignum.c (BIGDIVREM_EXTRA_WORDS): Redefine to 1.akr2013-08-171-21/+7