]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/sparc/sparc64/soft-fp/qp_feq.c
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / sparc / sparc64 / soft-fp / qp_feq.c
index 6671733a09f532f35a781669c81a1cb9bd9a21f7..47e2d54e085eb63982c81c62c9537ef4842e62be 100644 (file)
@@ -1,6 +1,6 @@
 /* Software floating-point emulation.
    Return 1 if (*a) == (*b)
-   Copyright (C) 1997-2013 Free Software Foundation, Inc.
+   Copyright (C) 1997-2016 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Richard Henderson (rth@cygnus.com) and
                  Jakub Jelinek (jj@ultra.linux.cz).
@@ -31,12 +31,10 @@ int _Qp_feq(const long double *a, const long double *b)
   FP_INIT_ROUNDMODE;
   FP_UNPACK_RAW_QP(A, a);
   FP_UNPACK_RAW_QP(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);
 
   QP_HANDLE_EXCEPTIONS(
-       __asm (
+       __asm (
 "      ldd [%0], %%f52\n"
 "      ldd [%0+8], %%f54\n"
 "      ldd [%1], %%f56\n"