commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1097094 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java
Date Wed, 27 Apr 2011 12:26:48 GMT
Author: erans
Date: Wed Apr 27 12:26:48 2011
New Revision: 1097094

URL: http://svn.apache.org/viewvc?rev=1097094&view=rev
Log:
Replaced "Math" with "FastMath".

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java?rev=1097094&r1=1097093&r2=1097094&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java Wed
Apr 27 12:26:48 2011
@@ -1293,8 +1293,8 @@ public final class MathUtils {
     public static double reduce(double a,
                                 double period,
                                 double offset) {
-        final double p = Math.abs(period);
-        return a - p * Math.floor((a - offset) / p) - offset;
+        final double p = FastMath.abs(period);
+        return a - p * FastMath.floor((a - offset) / p) - offset;
     }
 
      /**



Mime
View raw message