You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2023/01/17 15:34:21 UTC

[sis] 02/02: Disable the use of FMA on the master branch for `MathTransform.transform(…)` methods. FMA stay enabled on the geoapi-4.0 development branch.

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

desruisseaux pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sis.git

commit 668c1d28b55766371eb5210fc1abcbe68852fd3a
Author: Martin Desruisseaux <ma...@geomatys.com>
AuthorDate: Tue Jan 17 15:53:20 2023 +0100

    Disable the use of FMA on the master branch for `MathTransform.transform(…)` methods.
    FMA stay enabled on the geoapi-4.0 development branch.
    
    The reason for disabling FMA is that they provide a slight performance increase on processors
    that support it, but a big performance penality on processors that do not support it.
    FMA may be considered common enough if the future, when `geoapi-3.1` will become `main`.
---
 .../src/main/java/org/apache/sis/internal/referencing/Formulas.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/Formulas.java b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/Formulas.java
index 538cb09cc6..89c7837181 100644
--- a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/Formulas.java
+++ b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/Formulas.java
@@ -110,7 +110,7 @@ public final class Formulas extends Static {
      * but come at a high cost on older machines without hardware support.
      */
     @Configuration
-    public static final boolean USE_FMA = true;
+    public static final boolean USE_FMA = false;
 
     /**
      * Do not allow instantiation of this class.