svn commit: r207526 - stable/8/lib/libc/softfloat
    Marius Strobl 
    marius at FreeBSD.org
       
    Sun May  2 16:52:24 UTC 2010
    
    
  
Author: marius
Date: Sun May  2 16:52:23 2010
New Revision: 207526
URL: http://svn.freebsd.org/changeset/base/207526
Log:
  MFC: r206490, r206492
  
  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
Modified:
  stable/8/lib/libc/softfloat/softfloat-specialize
Directory Properties:
  stable/8/lib/libc/   (props changed)
  stable/8/lib/libc/stdtime/   (props changed)
Modified: stable/8/lib/libc/softfloat/softfloat-specialize
==============================================================================
--- stable/8/lib/libc/softfloat/softfloat-specialize	Sun May  2 16:47:54 2010	(r207525)
+++ stable/8/lib/libc/softfloat/softfloat-specialize	Sun May  2 16:52:23 2010	(r207526)
@@ -44,7 +44,11 @@ Underflow tininess-detection mode, stati
 #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;
+#endif
 
 /*
 -------------------------------------------------------------------------------
    
    
More information about the svn-src-stable
mailing list