From: John Arbuckle <programmingkidx@gmail.com>
To: richard.henderson@linaro.org, qemu-devel@nongnu.org,
qemu-ppc@nongnu.orgd, david@gibson.dropbear.id.au,
mark.cave-ayland@ilande.co.uk
Cc: John Arbuckle <programmingkidx@gmail.com>
Subject: [Qemu-devel] [PATCH 0/2] Implement PowerPC FPSCR flag Fraction Rounded
Date: Fri, 24 May 2019 22:20:06 -0400 [thread overview]
Message-ID: <20190525022008.24788-1-programmingkidx@gmail.com> (raw)
In IEEE 754 math, the arithmetic, rounding, and conversion instructions produce an intermediate result that can be regarded as having infinite precision and unbounded exponent range. When the final result has its fraction part incremented is when the Fraction Rounded bit is set.
This patch implements the PowerPC FPSCR flag Fraction Rounded.
Note: there are still functions in softfloat that need to be adjusted so that float_flag_rounded is fully supported. These include round_to_int(), and all legacy roundAndPack* functions. So basically anywhere that sets the float_flag_inexact.
John Arbuckle (2):
Implement Floating Point flag Fraction Rounded
Implement the PowerPC Floating Point Status and Control Register
Fraction Rounded bit
fpu/softfloat.c | 15 ++++++++++++---
include/fpu/softfloat-types.h | 1 +
target/ppc/fpu_helper.c | 4 ++++
3 files changed, 17 insertions(+), 3 deletions(-)
--
2.14.3 (Apple Git-98)
next reply other threads:[~2019-05-25 2:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-25 2:20 John Arbuckle [this message]
2019-05-25 2:20 ` [Qemu-devel] [PATCH 1/2] Implement Floating Point flag Fraction Rounded John Arbuckle
2019-06-11 21:00 ` Richard Henderson
2019-05-25 2:20 ` [Qemu-devel] [PATCH 2/2] Implement the PowerPC Floating Point Status and Control Register Fraction Rounded bit John Arbuckle
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=20190525022008.24788-1-programmingkidx@gmail.com \
--to=programmingkidx@gmail.com \
--cc=david@gibson.dropbear.id.au \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.orgd \
--cc=richard.henderson@linaro.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;
as well as URLs for NNTP newsgroup(s).