]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use fsqrt() to calculate float (rather than double) square root.
authorNick Clifton <nickc@redhat.com>
Thu, 21 Jul 2016 08:17:54 +0000 (09:17 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 21 Jul 2016 08:19:24 +0000 (09:19 +0100)
* simulator.c (fsqrts): Use fsqrt rather than sqrt.

sim/aarch64/ChangeLog
sim/aarch64/simulator.c

index 2d9a9d20eac2295e8b8f7d54a9af043b65e11d09..e58d8b2e4817de4cbfd88c431526fef9c1280769 100644 (file)
@@ -1,3 +1,7 @@
+2016-07-21  Nick Clifton  <nickc@redhat.com>
+
+       * simulator.c (fsqrts): Use fsqrt rather than sqrt.
+
 2016-06-30  Jim Wilson  <jim.wilson@linaro.org>
 
        * cpustate.h: Include config.h.
index 7c15e7a50b335484d9453bf9dfb749ec6b1a0669..45844e2f429441f0acd9d96497772cee10a42f05 100644 (file)
@@ -7754,7 +7754,7 @@ fsqrts (sim_cpu *cpu)
   unsigned sd = INSTR (4, 0);
 
   TRACE_DECODE (cpu, "emulated at line %d", __LINE__);
-  aarch64_set_FP_float (cpu, sd, sqrt (aarch64_get_FP_float (cpu, sn)));
+  aarch64_set_FP_float (cpu, sd, sqrtf (aarch64_get_FP_float (cpu, sn)));
 }
 
 /* Double square root.  */