aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/softfloat
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2010-04-11 20:08:54 +0000
committerMarius Strobl <marius@FreeBSD.org>2010-04-11 20:08:54 +0000
commitb7e9bee71c1ddb18cc3ee5bcaf4a3e2360e1d6b0 (patch)
tree66319ccee19ba553481afa4db2f3a15dbce8e9f9 /lib/libc/softfloat
parenta9ea2209acbe391f78743eeb6bc0ca910676728e (diff)
downloadsrc-b7e9bee71c1ddb18cc3ee5bcaf4a3e2360e1d6b0.tar.gz
src-b7e9bee71c1ddb18cc3ee5bcaf4a3e2360e1d6b0.zip
While SPARC V9 allows tininess to be detected either before or after
rounding (impl. dep. #55), the SPARC JPS1 responsible for SPARC64 and UltraSPARC processors defines that in all cases tininess is detected before rounding therefore rounding up to the smallest normalized number should set the underflow flag. This change is needed for using SoftFloat on sparc64 for reference purposes. PR: 144900 Submitted by: Peter Jeremy
Notes
Notes: svn path=/head/; revision=206490
Diffstat (limited to 'lib/libc/softfloat')
-rw-r--r--lib/libc/softfloat/softfloat-specialize3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/softfloat/softfloat-specialize b/lib/libc/softfloat/softfloat-specialize
index c8c8028d652f..0bea9d4f851f 100644
--- a/lib/libc/softfloat/softfloat-specialize
+++ b/lib/libc/softfloat/softfloat-specialize
@@ -44,6 +44,9 @@ Underflow tininess-detection mode, statically initialized to default value.
#ifdef SOFTFLOAT_FOR_GCC
static
#endif
+#ifdef __sparc64__
+int8 float_detect_tininess = float_tininess_before_rounding;
+#else
int8 float_detect_tininess = float_tininess_after_rounding;
/*