1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

soft-fp: fix floating-point to integer unsigned saturation.

This commit is contained in:
Joseph Myers
2013-10-12 12:17:16 +00:00
parent 10e1cf6b73
commit 99fd9f47ef
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2013-10-12 Joseph Myers <joseph@codesourcery.com>
* soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
computing saturated result for unsigned overflow.
2013-10-11 Siddhesh Poyarekar <siddhesh@redhat.com> 2013-10-11 Siddhesh Poyarekar <siddhesh@redhat.com>
Jeff Law <law@redhat.com> Jeff Law <law@redhat.com>

View File

@@ -1284,7 +1284,7 @@ do { \
r -= 1 - X##_s; \ r -= 1 - X##_s; \
} else { \ } else { \
r = 0; \ r = 0; \
if (X##_s) \ if (!X##_s) \
r = ~r; \ r = ~r; \
} \ } \
\ \