1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* insns.def (opt_gt|ge|lt|le): use values directly to compare.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2008-05-22 17:31:15 +00:00
parent a45cd8a01c
commit 9832ab3663
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,7 @@
Fri May 23 02:29:14 2008 Koichi Sasada <ko1@atdot.net>
* insns.def (opt_gt|ge|lt|le): use values directly to compare.
Fri May 23 01:15:09 2008 Koichi Sasada <ko1@atdot.net>
* eval.c, eval_intern.h, include/ruby/intern.h, include/ruby/ruby.h,

View file

@ -1692,7 +1692,7 @@ opt_lt
{
if (FIXNUM_2_P(recv, obj) &&
BASIC_OP_UNREDEFINED_P(BOP_LT)) {
long a = FIX2LONG(recv), b = FIX2LONG(obj);
SIGNED_VALUE a = recv, b = obj;
if (a < b) {
val = Qtrue;
@ -1721,7 +1721,7 @@ opt_le
{
if (FIXNUM_2_P(recv, obj) &&
BASIC_OP_UNREDEFINED_P(BOP_LE)) {
long a = FIX2LONG(recv), b = FIX2LONG(obj);
SIGNED_VALUE a = recv, b = obj;
if (a <= b) {
val = Qtrue;
@ -1751,7 +1751,7 @@ opt_gt
{
if (FIXNUM_2_P(recv, obj) &&
BASIC_OP_UNREDEFINED_P(BOP_GT)) {
long a = FIX2LONG(recv), b = FIX2LONG(obj);
SIGNED_VALUE a = recv, b = obj;
if (a > b) {
val = Qtrue;
@ -1780,7 +1780,7 @@ opt_ge
{
if (FIXNUM_2_P(recv, obj) &&
BASIC_OP_UNREDEFINED_P(BOP_GE)) {
long a = FIX2LONG(recv), b = FIX2LONG(obj);
SIGNED_VALUE a = recv, b = obj;
if (a >= b) {
val = Qtrue;