about summary refs log tree commit diff
path: root/sysdeps/sparc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-10-10 11:38:56 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-10-10 11:38:56 +0000
commit2ae21ed2d2e2e0e38b84bd046bcf5f009ab417f3 (patch)
tree6601496a93918a878fa9f609341f2d08c88756f0 /sysdeps/sparc
parentcb8f9562a53b54ffbcc0b4ba4a6ac5e56b05beb2 (diff)
downloadglibc-2ae21ed2d2e2e0e38b84bd046bcf5f009ab417f3.tar.gz
glibc-2ae21ed2d2e2e0e38b84bd046bcf5f009ab417f3.tar.xz
glibc-2ae21ed2d2e2e0e38b84bd046bcf5f009ab417f3.zip
soft-fp: fix negation NaN handling (bug 16034).
Diffstat (limited to 'sysdeps/sparc')
-rw-r--r--sysdeps/sparc/sparc32/soft-fp/q_neg.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sysdeps/sparc/sparc32/soft-fp/q_neg.c b/sysdeps/sparc/sparc32/soft-fp/q_neg.c
index 551c40887b..5e2449c916 100644
--- a/sysdeps/sparc/sparc32/soft-fp/q_neg.c
+++ b/sysdeps/sparc/sparc32/soft-fp/q_neg.c
@@ -24,7 +24,6 @@
 
 long double _Q_neg(const long double a)
 {
-  FP_DECL_EX;
   long double c = a;
 
 #if (__BYTE_ORDER == __BIG_ENDIAN)
@@ -36,11 +35,9 @@ long double _Q_neg(const long double a)
 #else
   FP_DECL_Q(A); FP_DECL_Q(C);
 
-  FP_UNPACK_Q(A, a);
+  FP_UNPACK_RAW_Q(A, a);
   FP_NEG_Q(C, A);
-  FP_PACK_Q(c, C);
+  FP_PACK_RAW_Q(c, C);
 #endif
-  FP_CLEAR_EXCEPTIONS;
-  FP_HANDLE_EXCEPTIONS;
   return c;
 }