diff options
author | marius <marius@FreeBSD.org> | 2010-04-11 20:08:54 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2010-04-11 20:08:54 +0000 |
commit | c8c2ee54132a8f0953e6397ccef2d659537a75a3 (patch) | |
tree | 66319ccee19ba553481afa4db2f3a15dbce8e9f9 /lib/libc | |
parent | 8726069cf7fd4cc27a896cbfddbe3a3d2ab866ab (diff) | |
download | FreeBSD-src-c8c2ee54132a8f0953e6397ccef2d659537a75a3.zip FreeBSD-src-c8c2ee54132a8f0953e6397ccef2d659537a75a3.tar.gz |
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
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/softfloat/softfloat-specialize | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/softfloat/softfloat-specialize b/lib/libc/softfloat/softfloat-specialize index c8c8028..0bea9d4 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; /* |