aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * time.c (v2w_bignum): Simplified using rb_integer_pack.akr2013-06-082-37/+19
| | | | | | | | (rb_big_abs_find_maxbit): Removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_absint_singlebit_p): New function.akr2013-06-084-21/+58
| | | | | | | | | | | | * internal.h (rb_absint_singlebit_p): Declared. * time.c (v2w_bignum): Use rb_absint_singlebit_p instead of rb_big_abs_find_minbit. (rb_big_abs_find_minbit): Removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (rb_big_abs_find_maxbit): Use rb_absint_size.akr2013-06-082-36/+14
| | | | | | | | (bdigit_find_maxbit): Removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (include_modules_at): invalidate method cache if includedcharliesome2013-06-083-0/+29
| | | | | | | | module contains constants * test/ruby/test_module.rb: add test git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (limited_big_rand): declare rnd, lim and mask as uint32_tcharliesome2013-06-082-3/+9
| | | | | | to avoid 64 bit to 32 bit shorten warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub: r41163 changed win32/win32.c and configure.innaruse2013-06-082-0/+8
| | | | | | | | but it didn't treat about mswin32/mswin64, so fix it. NOTE: this needs a review by usa whether additional condition is required or not. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c: Unused RBignum internal accessing macros removed.akr2013-06-082-9/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (limited_big_rand): The argument, limit, is changed toakr2013-06-082-27/+29
| | | | | | | | VALUE. Use rb_integer_pack and rb_integer_unpack. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (make_seed_value): Fix the length given forakr2013-06-082-1/+6
| | | | | | | | rb_integer_unpack. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_integer_unpack): Don't use rb_funcall if possible.akr2013-06-083-35/+54
| | | | | | | | | * random.c: Use uint32_t for elements of seed. (make_seed_value): Use rb_integer_unpack. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (rand_init): Add a cast to fix clang compile error:akr2013-06-082-1/+9
| | | | | | | | | | | random.c:410:32: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32] This cast doesn't cause a problem because len is not bigger than MT_MAX_STATE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (rand_init): Use rb_integer_pack.akr2013-06-082-46/+26
| | | | | | | | (roomof): Removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Remove a trailing spaceakr2013-06-081-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h (INTEGER_PACK_FORCE_BIGNUM): New flag constant.akr2013-06-084-3/+20
| | | | | | | | | | | * bignum.c (rb_integer_unpack): Support INTEGER_PACK_FORCE_BIGNUM. * random.c (int_pair_to_real_inclusive): Use INTEGER_PACK_FORCE_BIGNUM to use rb_big_mul instead of rb_funcall. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Re-add removed entries by r41163.akr2013-06-081-0/+167
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: NET_LUIDnobu2013-06-083-165/+11
| | | | | | | | * configure.in: check for NET_LUID. header macro varies across complier versions. * win32/win32.c: use configured macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (int_pair_to_real_inclusive): Use rb_funcall instead ofakr2013-06-082-1/+6
| | | | | | | | rb_big_mul because rb_integer_unpack can return a Fixnum. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (int_pair_to_real_inclusive): Use rb_integer_pack.akr2013-06-082-15/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (int_pair_to_real_inclusive): Use rb_integer_unpack.akr2013-06-082-22/+23
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (random_load): Use rb_integer_pack.akr2013-06-072-44/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Refine error messages.akr2013-06-071-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (numberof): Removed.akr2013-06-072-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c: include internal.h.akr2013-06-073-18/+10
| | | | | | | | (mt_state): Use rb_integer_unpack. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (integer_pack_loop_setup): word_num_nailbytes_ret argumentakr2013-06-072-21/+17
| | | | | | | | | | removed. (rb_integer_pack): Follow the above change. (rb_integer_unpack): Follow the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (validate_integer_pack_format): Renamed fromakr2013-06-072-14/+23
| | | | | | | | | | | | validate_integer_format. (integer_pack_loop_setup): Renamed from integer_format_loop_setup. (integer_pack_fill_dd): Renamed from int_export_fill_dd. (integer_pack_take_lowbits): Renamed from int_export_take_lowbits. (integer_unpack_push_bits): Renamed from int_import_push_bits. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Delete an empty line.akr2013-06-071-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-06-08svn2013-06-071-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_integer_pack): Arguments changed. Use flags toakr2013-06-076-110/+174
| | | | | | | | | | | | | | | | | | | | | | specify word order and byte order. (rb_integer_unpack): Ditto. (validate_integer_format): Follow the above change. (integer_format_loop_setup): Ditto. * pack.c: Ditto. * internal.h: Ditto. (INTEGER_PACK_MSWORD_FIRST): Defined. (INTEGER_PACK_LSWORD_FIRST): Ditto. (INTEGER_PACK_MSBYTE_FIRST): Ditto. (INTEGER_PACK_LSBYTE_FIRST): Ditto. (INTEGER_PACK_NATIVE_BYTE_ORDER): Ditto. (INTEGER_PACK_LITTLE_ENDIAN): Ditto. (INTEGER_PACK_BIG_ENDIAN): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_const_set): fix missing semicolon.ktsj2013-06-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_const_set): fix variable type.nobu2013-06-071-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/specification.rb (Gem::Specification#to_yaml):naruse2013-06-072-1/+7
| | | | | | | use Gem::NoAliasYAMLTree.create instead of Gem::NoAliasYAMLTree.new to suppress deprecated warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_integer_pack): Renamed from rb_int_export.akr2013-06-0711-176/+166
| | | | | | | | | | (rb_integer_unpack): Renamed from rb_int_import. * internal.h, pack.c: Follow the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update comment.akr2013-06-071-4/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (integer_format_loop_setup): Extracted from rb_int_exportakr2013-06-072-72/+87
| | | | | | | | and rb_int_import. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (validate_integer_format): Extracted from rb_int_export andakr2013-06-072-22/+25
| | | | | | | | rb_int_import. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_absint_size): Use numberof.akr2013-06-072-4/+9
| | | | | | | | (rb_int_export): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h (numberof): Gathered from various files.akr2013-06-0718-32/+10
| | | | | | | | | | * array.c, math.c, thread_pthread.c, iseq.c, enum.c, string.c, io.c, load.c, compile.c, struct.c, eval.c, gc.c, parse.y, process.c, error.c, ruby.c: Remove the definitions of numberof. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix a typo.akr2013-06-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.oc (rb_absint_size): Declare a variable, i, just before usedakr2013-06-072-8/+19
| | | | | | | | | to suppress a warning. (rb_int_export): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_absint_size): explicit cast to BDIGIT to avoid implicitcharliesome2013-06-072-3/+10
| | | | | | | | 64 bit to 32 bit shortening warning * bignum.c (rb_int_export): ditto * bignum.c (int_import_push_bits): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h (RCLASS_SUPER): use descriptive variable namecharliesome2013-06-072-5/+10
| | | | | | * internal.h (RCLASS_SET_SUPER): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typo for r41123kazu2013-06-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typo for r41128kazu2013-06-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/fbuffer/fbuffer.h (fbuffer_append_str): change the place ofnaruse2013-06-072-2/+7
| | | | | | RB_GC_GUARD. it should be after the object is used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (before_gc_sweep): noinline can also avoid the segv instead ofnaruse2013-06-072-1/+6
| | | | | | -O0 of r41084. this way is expected less slow. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* adjust stylenobu2013-06-072-6/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rational.c (numeric_quo): move num_quo in numeric.c to numeric_quomrkn2013-06-074-21/+43
| | | | | | | | | | | in rational.c to refer canonicalization state for mathn support. [ruby-core:41575] [Bug #5736] * numeric.c (num_quo): ditto. * test/test_mathn.rb: add a test for the change at r41109. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (gc_clear_slot_bits): used only if no RGenGC.nobu2013-06-071-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use NUM2SIZET and SIZET2NUMnobu2013-06-075-12/+19
| | | | | | | | | | | | | * configure.in: revert r41106. size_t may not be unsigned * bignum.c (rb_absint_size_in_word, rb_int_export, rb_int_import): use NUM2SIZET() and SIZET2NUM() already defined in ruby/ruby.h. * ext/-test-/bignum/export.c (rb_int_export_m): ditto. * ext/-test-/bignum/import.c (rb_int_import_m): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.nobu2013-06-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e