changeset 23288:aed81b364903

Correct 350X slowdown in eps (bug #50561). * data.cc (Feps): Move assignment of intermediate variable epsval to retval from inside for loop to single execution after for loop.
author Rik <rik@octave.org>
date Thu, 16 Mar 2017 08:29:51 -0700
parents 953cb077757c
children 7a06a1a5a12b
files libinterp/corefcn/data.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/data.cc	Thu Mar 16 08:55:02 2017 -0400
+++ b/libinterp/corefcn/data.cc	Thu Mar 16 08:29:51 2017 -0700
@@ -4534,9 +4534,9 @@
                   epsval(i) = std::pow (2.0,
                                         static_cast<double> (expon - 53));
                 }
-
-              retval = epsval;
             }
+
+          retval = epsval;
         }
     }
   else