diff options
author | das <das@FreeBSD.org> | 2012-01-20 06:16:14 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2012-01-20 06:16:14 +0000 |
commit | 6003be2b93b55b2c4ddc36327b2368bfbf1cd580 (patch) | |
tree | ca7e1949c416c8eaa7e890e6031477d283c8ddb9 /lib/libc/softfloat/bits64/softfloat-macros | |
parent | 9386d0d604b43db6adc33e4d48dacd735ccff9fb (diff) | |
download | FreeBSD-src-6003be2b93b55b2c4ddc36327b2368bfbf1cd580.zip FreeBSD-src-6003be2b93b55b2c4ddc36327b2368bfbf1cd580.tar.gz |
Merge in the latest SoftFloat changes from NetBSD. (NetBSD isn't the
original vendor, but we're using their heavily modified version.)
This brings in functions for long double emulation (both extended and
quad formats), which may be useful for testing, and also for replacing
libc/sparc64/fpu/.
Diffstat (limited to 'lib/libc/softfloat/bits64/softfloat-macros')
-rw-r--r-- | lib/libc/softfloat/bits64/softfloat-macros | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/softfloat/bits64/softfloat-macros b/lib/libc/softfloat/bits64/softfloat-macros index 9b478e8..f4647de 100644 --- a/lib/libc/softfloat/bits64/softfloat-macros +++ b/lib/libc/softfloat/bits64/softfloat-macros @@ -1,4 +1,4 @@ -/* $NetBSD: softfloat-macros,v 1.1 2002/05/21 23:51:08 bjh21 Exp $ */ +/* $NetBSD: softfloat-macros,v 1.2 2009/02/16 10:23:35 tron Exp $ */ /* $FreeBSD$ */ /* @@ -387,7 +387,7 @@ INLINE void carry0 = ( z1 < a1 ); z0 = a0 + b0; z1 += carry1; - z0 += ( z1 < carry1 ); + z0 += ( z1 < (bits64)carry1 ); z0 += carry0; *z2Ptr = z2; *z1Ptr = z1; @@ -444,7 +444,7 @@ INLINE void z1 = a1 - b1; borrow0 = ( a1 < b1 ); z0 = a0 - b0; - z0 -= ( z1 < borrow1 ); + z0 -= ( z1 < (bits64)borrow1 ); z1 -= borrow1; z0 -= borrow0; *z2Ptr = z2; |