]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - soft-fp/unordsf2.c
nss: Turn __nss_database_lookup into a compatibility symbol
[thirdparty/glibc.git] / soft-fp / unordsf2.c
index c22578c8d810d5a6a49126fe499bbee002f9a936..5b8fa10f7d8b3d373e7923d31734b92cdedceaae 100644 (file)
@@ -1,6 +1,6 @@
 /* Software floating-point emulation.
    Return 1 iff a or b is a NaN, 0 otherwise.
-   Copyright (C) 2006,2007 Free Software Foundation, Inc.
+   Copyright (C) 2006-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Joseph Myers (joseph@codesourcery.com).
 
 #include "soft-fp.h"
 #include "single.h"
 
-CMPtype __unordsf2(SFtype a, SFtype b)
+CMPtype
+__unordsf2 (SFtype a, SFtype b)
 {
-  FP_DECL_S(A);
-  FP_DECL_S(B);
+  FP_DECL_EX;
+  FP_DECL_S (A);
+  FP_DECL_S (B);
   CMPtype r;
 
-  FP_UNPACK_RAW_S(A, a);
-  FP_UNPACK_RAW_S(B, b);
-  FP_CMP_UNORD_S(r, A, B);
+  FP_INIT_EXCEPTIONS;
+  FP_UNPACK_RAW_S (A, a);
+  FP_UNPACK_RAW_S (B, b);
+  FP_CMP_UNORD_S (r, A, B, 1);
+  FP_HANDLE_EXCEPTIONS;
 
   return r;
 }