[前][次][番号順一覧][スレッド一覧]

ruby-changes:45733

From: naruse <ko1@a...>
Date: Wed, 8 Mar 2017 04:48:07 +0900 (JST)
Subject: [ruby-changes:45733] naruse:r57806 (trunk): Always use old RB_FIXABLE to allow double as argument

naruse	2017-03-08 04:48:00 +0900 (Wed, 08 Mar 2017)

  New Revision: 57806

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57806

  Log:
    Always use old RB_FIXABLE to allow double as argument

  Modified files:
    trunk/include/ruby/ruby.h
Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 57805)
+++ include/ruby/ruby.h	(revision 57806)
@@ -359,11 +359,7 @@ rb_fix2ulong(VALUE x) https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L359
 #define RB_FIXNUM_P(f) (((int)(SIGNED_VALUE)(f))&RUBY_FIXNUM_FLAG)
 #define RB_POSFIXABLE(f) ((f) < RUBY_FIXNUM_MAX+1)
 #define RB_NEGFIXABLE(f) ((f) >= RUBY_FIXNUM_MIN)
-#if defined HAVE_BUILTIN___BUILTIN_ADD_OVERFLOW
-# define RB_FIXABLE(f) ({SIGNED_VALUE a=(f),c; !__builtin_add_overflow(a, a, &c);})
-#else
-# define RB_FIXABLE(f) (RB_POSFIXABLE(f) && RB_NEGFIXABLE(f))
-#endif
+#define RB_FIXABLE(f) (RB_POSFIXABLE(f) && RB_NEGFIXABLE(f))
 #define FIX2LONG(x) RB_FIX2LONG(x)
 #define FIX2ULONG(x) RB_FIX2ULONG(x)
 #define FIXNUM_P(f) RB_FIXNUM_P(f)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]