From: Nick Clifton <nickc@redhat.com>
To: gdb-patches@sourceware.org
Subject: Commit: AArch64 sim: Use fsqrt for floating point square root.
Date: Thu, 21 Jul 2016 08:17:00 -0000 [thread overview]
Message-ID: <87lh0v9zh3.fsf@redhat.com> (raw)
Hi Guys,
I am checking in the patch below to tweak the aarch64 simulator a
little bit, so that it uses the float version of the square root math
library function when operating on float values.
Cheers
Nick
sim/aarch64/ChangeLog
2016-07-21 Nick Clifton <nickc@redhat.com>
* simulator.c (fsqrts): Use fsqrt rather than sqrt.
diff --git a/sim/aarch64/simulator.c b/sim/aarch64/simulator.c
index 7c15e7a..45844e2 100644
--- a/sim/aarch64/simulator.c
+++ b/sim/aarch64/simulator.c
@@ -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. */
next reply other threads:[~2016-07-21 8:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-21 8:17 Nick Clifton [this message]
2016-07-21 8:20 ` Andreas Schwab
2016-07-21 8:24 ` Nick Clifton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lh0v9zh3.fsf@redhat.com \
--to=nickc@redhat.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox