Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2012 14:44:22 +0000 (UTC)
From:      David Schultz <das@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230380 - head/lib/libc/softfloat/bits64
Message-ID:  <201201201444.q0KEiMC8046082@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: das
Date: Fri Jan 20 14:44:21 2012
New Revision: 230380
URL: http://svn.freebsd.org/changeset/base/230380

Log:
  Conditionalize the __floatunsisf and __floatunsidf functions, added in
  NetBSD's rev 1.6 of this file, on !defined(SOFTFLOAT_FOR_GCC).  These
  functions are provided by libgcc, so we don't need them.  This should
  unbreak mips.

Modified:
  head/lib/libc/softfloat/bits64/softfloat.c

Modified: head/lib/libc/softfloat/bits64/softfloat.c
==============================================================================
--- head/lib/libc/softfloat/bits64/softfloat.c	Fri Jan 20 13:26:11 2012	(r230379)
+++ head/lib/libc/softfloat/bits64/softfloat.c	Fri Jan 20 14:44:21 2012	(r230380)
@@ -1126,6 +1126,7 @@ float32 int32_to_float32( int32 a )
 
 }
 
+#ifndef SOFTFLOAT_FOR_GCC /* __floatunsisf is in libgcc */
 float32 uint32_to_float32( uint32 a )
 {
     if ( a == 0 ) return 0;
@@ -1133,6 +1134,7 @@ float32 uint32_to_float32( uint32 a )
 	return normalizeRoundAndPackFloat32( 0, 0x9D, a >> 1 );
     return normalizeRoundAndPackFloat32( 0, 0x9C, a );
 }
+#endif
 
 
 /*
@@ -1158,6 +1160,7 @@ float64 int32_to_float64( int32 a )
 
 }
 
+#ifndef SOFTFLOAT_FOR_GCC /* __floatunsidf is in libgcc */
 float64 uint32_to_float64( uint32 a )
 {
     int8 shiftCount;
@@ -1168,6 +1171,7 @@ float64 uint32_to_float64( uint32 a )
     return packFloat64( 0, 0x432 - shiftCount, zSig<<shiftCount );
 
 }
+#endif
 
 #ifdef FLOATX80
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201201444.q0KEiMC8046082>