]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/sparc/sparc32/soft-fp/q_fne.c
soft-fp: Refactor exception handling for comparisons.
[thirdparty/glibc.git] / sysdeps / sparc / sparc32 / soft-fp / q_fne.c
index 78c2d6f971bee05c8a29a375e1002e6258829e04..e22f6c987a33a920a2bfb44f0973d8bdb690e7ee 100644 (file)
@@ -30,9 +30,7 @@ int _Q_fne(const long double a, const long double b)
 
   FP_UNPACK_RAW_Q(A, a);
   FP_UNPACK_RAW_Q(B, b);
-  FP_CMP_EQ_Q(r, A, B);
-  if (r && (FP_ISSIGNAN_Q(A) || FP_ISSIGNAN_Q(B)))
-    FP_SET_EXCEPTION(FP_EX_INVALID);
+  FP_CMP_EQ_Q(r, A, B, 1);
   FP_HANDLE_EXCEPTIONS;
 
   return r;