You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2021/09/21 16:04:33 UTC

[commons-numbers] branch master updated: Correct typo

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git


The following commit(s) were added to refs/heads/master by this push:
     new ae3ad19  Correct typo
ae3ad19 is described below

commit ae3ad1993c98c5ba8d7f80c08bf7d94a77f65643
Author: aherbert <ah...@apache.org>
AuthorDate: Tue Sep 21 17:04:31 2021 +0100

    Correct typo
---
 .../apache/commons/numbers/examples/jmh/core/DoublePrecision.java | 2 +-
 .../commons/numbers/examples/jmh/core/LinearCombinations.java     | 2 +-
 .../commons/numbers/examples/jmh/core/StickySumPerformance.java   | 8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/commons-numbers-examples/examples-jmh/src/main/java/org/apache/commons/numbers/examples/jmh/core/DoublePrecision.java b/commons-numbers-examples/examples-jmh/src/main/java/org/apache/commons/numbers/examples/jmh/core/DoublePrecision.java
index ea115b8..53d6036 100644
--- a/commons-numbers-examples/examples-jmh/src/main/java/org/apache/commons/numbers/examples/jmh/core/DoublePrecision.java
+++ b/commons-numbers-examples/examples-jmh/src/main/java/org/apache/commons/numbers/examples/jmh/core/DoublePrecision.java
@@ -678,7 +678,7 @@ final class DoublePrecision {
      * Shewchuk (1997) Theorum 6</a>
      */
     static double fastTwoSumLow(double a, double b, double sum) {
-        // bVitual = sum - a
+        // bVirtual = sum - a
         // b - bVirtual == b round-off
         return b - (sum - a);
     }
diff --git a/commons-numbers-examples/examples-jmh/src/main/java/org/apache/commons/numbers/examples/jmh/core/LinearCombinations.java b/commons-numbers-examples/examples-jmh/src/main/java/org/apache/commons/numbers/examples/jmh/core/LinearCombinations.java
index 467e9da..a244566 100644
--- a/commons-numbers-examples/examples-jmh/src/main/java/org/apache/commons/numbers/examples/jmh/core/LinearCombinations.java
+++ b/commons-numbers-examples/examples-jmh/src/main/java/org/apache/commons/numbers/examples/jmh/core/LinearCombinations.java
@@ -1305,7 +1305,7 @@ public final class LinearCombinations {
              */
             static double fastSumWithStickyBit(double a, double b) {
                 double sum = a + b;
-                // bVitual = sum - a
+                // bVirtual = sum - a
                 // b - bVirtual == b round-off
                 final double r = b - (sum - a);
 
diff --git a/commons-numbers-examples/examples-jmh/src/main/java/org/apache/commons/numbers/examples/jmh/core/StickySumPerformance.java b/commons-numbers-examples/examples-jmh/src/main/java/org/apache/commons/numbers/examples/jmh/core/StickySumPerformance.java
index 187e0e2..6567a2c 100644
--- a/commons-numbers-examples/examples-jmh/src/main/java/org/apache/commons/numbers/examples/jmh/core/StickySumPerformance.java
+++ b/commons-numbers-examples/examples-jmh/src/main/java/org/apache/commons/numbers/examples/jmh/core/StickySumPerformance.java
@@ -237,7 +237,7 @@ public class StickySumPerformance {
      */
     private static double fastSumWithStickyBitBranched(double a, double b) {
         double sum = a + b;
-        // bVitual = sum - a
+        // bVirtual = sum - a
         // b - bVirtual == b round-off
         final double r = b - (sum - a);
 
@@ -298,7 +298,7 @@ public class StickySumPerformance {
      */
     private static double fastSumWithStickyBitBranchless(double a, double b) {
         final double sum = a + b;
-        // bVitual = sum - a
+        // bVirtual = sum - a
         // b - bVirtual == b round-off
         final double r = b - (sum - a);
 
@@ -404,7 +404,7 @@ public class StickySumPerformance {
      */
     private static double fastSumWithStickyBitBranchedOnHigh(double a, double b) {
         final double sum = a + b;
-        // bVitual = sum - a
+        // bVirtual = sum - a
         // b - bVirtual == b round-off
         final double r = b - (sum - a);
 
@@ -509,7 +509,7 @@ public class StickySumPerformance {
      */
     private static double fastSumWithStickyBitBranchedOnLow(double a, double b) {
         final double sum = a + b;
-        // bVitual = sum - a
+        // bVirtual = sum - a
         // b - bVirtual == b round-off
         final double r = b - (sum - a);