commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject [3/3] [math] Pow function re-implementation has been backported to 3.6.
Date Thu, 10 Sep 2015 09:13:27 GMT
Pow function re-implementation has been backported to 3.6.

Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/d93c95d5
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/d93c95d5
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/d93c95d5

Branch: refs/heads/master
Commit: d93c95d530cb0ce097fb76784d20640f42dba55b
Parents: 2edae4d
Author: Luc Maisonobe <luc@apache.org>
Authored: Thu Sep 10 10:39:02 2015 +0200
Committer: Luc Maisonobe <luc@apache.org>
Committed: Thu Sep 10 10:39:02 2015 +0200

----------------------------------------------------------------------
 src/changes/changes.xml                                   | 6 +++---
 src/main/java/org/apache/commons/math4/util/FastMath.java | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/d93c95d5/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 443c5ce..47f34d0 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -54,7 +54,7 @@ If the output is not quite correct, check for invisible trailing spaces!
     </release>
 
     <release version="4.0" date="XXXX-XX-XX" description="">
-      <action dev="luc" type="fix" issue="MATH-1272" due-to="Qualtagh">
+      <action dev="luc" type="fix" issue="MATH-1272" due-to="Qualtagh"> <!-- backported
to 3.6 -->
         Fixed infinite loop in FastMath.pow(double, long) with Long.MIN_VALUE.
       </action>
       <action dev="luc" type="fix" issue="MATH-1266"> <!-- backported to 3.6 -->
@@ -158,11 +158,11 @@ If the output is not quite correct, check for invisible trailing spaces!
       <action dev="luc" type="fix" issue="MATH-1226"> <!-- backported to 3.6 -->
         Fixed wrong event detection in case of close events pairs.
       </action>
-      <action dev="luc" type="add" >
+      <action dev="luc" type="add" > <!-- backported to 3.6 -->
         Reimplemented pow(double, double) in FastMath, for better accuracy in
         integral power cases and trying to fix erroneous JIT optimization again.
       </action>
-      <action dev="luc" type="add" >
+      <action dev="luc" type="add" > <!-- backported to 3.6 -->
         Added a pow(double, long) method in FastMath.
       </action>
       <action dev="luc" type="add" >

http://git-wip-us.apache.org/repos/asf/commons-math/blob/d93c95d5/src/main/java/org/apache/commons/math4/util/FastMath.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/util/FastMath.java b/src/main/java/org/apache/commons/math4/util/FastMath.java
index 9d0b5c4..3e2ee1f 100644
--- a/src/main/java/org/apache/commons/math4/util/FastMath.java
+++ b/src/main/java/org/apache/commons/math4/util/FastMath.java
@@ -1619,7 +1619,7 @@ public class FastMath {
      * @param d Number to raise.
      * @param e Exponent.
      * @return d<sup>e</sup>
-     * @since 4.0
+     * @since 3.6
      */
     public static double pow(double d, long e) {
         if (e == 0) {
@@ -1713,7 +1713,7 @@ public class FastMath {
         /** Computes this^e.
          * @param e exponent (beware, here it MUST be > 0; the only exclusion is Long.MIN_VALUE)
          * @return d^e, split in high and low bits
-         * @since 4.0
+         * @since 3.6
          */
         private Split pow(final long e) {
 


Mime
View raw message