[macruby-changes] [1861] MacRuby/branches/fp-optimized-experimental/compiler.cpp

source_changes at macosforge.org source_changes at macosforge.org
Mon Jun 15 15:21:34 PDT 2009


Revision: 1861
          http://trac.macosforge.org/projects/ruby/changeset/1861
Author:   pthomson at apple.com
Date:     2009-06-15 15:21:33 -0700 (Mon, 15 Jun 2009)
Log Message:
-----------
Changed SDivs to FDivs in the case of doubles.

Modified Paths:
--------------
    MacRuby/branches/fp-optimized-experimental/compiler.cpp

Modified: MacRuby/branches/fp-optimized-experimental/compiler.cpp
===================================================================
--- MacRuby/branches/fp-optimized-experimental/compiler.cpp	2009-06-15 21:31:14 UTC (rev 1860)
+++ MacRuby/branches/fp-optimized-experimental/compiler.cpp	2009-06-15 22:21:33 UTC (rev 1861)
@@ -1920,7 +1920,7 @@
 		opVal = BinaryOperator::CreateSub(leftAsDouble, rightAsDouble, "", bb);
 	}
 	else if (sel == selDIV) {
-		opVal = BinaryOperator::CreateSDiv(leftAsDouble, rightAsDouble, "", bb);
+		opVal = BinaryOperator::CreateFDiv(leftAsDouble, rightAsDouble, "", bb);
 	}
 	else if (sel == selMULT) {
 		opVal = BinaryOperator::CreateMul(leftAsDouble, rightAsDouble, "", bb);
@@ -2089,7 +2089,7 @@
 		opVal = BinaryOperator::CreateSub(left, right, "", bb);
 	}
 	else if (sel == selDIV) {
-		opVal = BinaryOperator::CreateSDiv(left, right, "", bb);
+		opVal = BinaryOperator::CreateFDiv(left, right, "", bb);
 	}
 	else if (sel == selMULT) {
 		opVal = BinaryOperator::CreateMul(left, right, "", bb);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090615/7013e312/attachment.html>


More information about the macruby-changes mailing list