[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r2126 - in /branches/eglibc-2_5/libc: ChangeLog.eglibc soft-fp/op-common.h
- To: commits@xxxxxxxxxx
- Subject: [commits] r2126 - in /branches/eglibc-2_5/libc: ChangeLog.eglibc soft-fp/op-common.h
- From: joseph@xxxxxxxxxx
- Date: Mon, 30 Apr 2007 22:18:45 -0000
Author: joseph
Date: Mon Apr 30 15:18:45 2007
New Revision: 2126
Log:
* soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
condition for truncating to 0. Set sticky bit for such
truncation.
Modified:
branches/eglibc-2_5/libc/ChangeLog.eglibc
branches/eglibc-2_5/libc/soft-fp/op-common.h
Modified: branches/eglibc-2_5/libc/ChangeLog.eglibc
==============================================================================
--- branches/eglibc-2_5/libc/ChangeLog.eglibc (original)
+++ branches/eglibc-2_5/libc/ChangeLog.eglibc Mon Apr 30 15:18:45 2007
@@ -1,3 +1,9 @@
+2007-04-30 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
+
+ * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
+ condition for truncating to 0. Set sticky bit for such
+ truncation.
+
2007-04-20 Jim Blandy <jimb@xxxxxxxxxxxxxxxx>
Add the OPTION_EGLIBC_INET option group.
Modified: branches/eglibc-2_5/libc/soft-fp/op-common.h
==============================================================================
--- branches/eglibc-2_5/libc/soft-fp/op-common.h (original)
+++ branches/eglibc-2_5/libc/soft-fp/op-common.h Mon Apr 30 15:18:45 2007
@@ -1211,8 +1211,11 @@
{ \
if (D##_e <= 0) \
{ \
- if (D##_e <= 1 - _FP_FRACBITS_##dfs) \
- _FP_FRAC_SET_##swc(S, _FP_ZEROFRAC_##swc); \
+ if (D##_e < 1 - _FP_FRACBITS_##dfs) \
+ { \
+ _FP_FRAC_SET_##swc(S, _FP_ZEROFRAC_##swc); \
+ _FP_FRAC_LOW_##swc(S) |= 1; \
+ } \
else \
{ \
_FP_FRAC_HIGH_##sfs(S) |= _FP_IMPLBIT_SH_##sfs; \