]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - soft-fp/ledf2.c
soft-fp: Refactor exception handling for comparisons.
[thirdparty/glibc.git] / soft-fp / ledf2.c
index 8b15d32b740a504000191148afd59ae2f9e3a701..fb5bbb29de97efb02c769d2293e9fcf2d5354733 100644 (file)
@@ -42,9 +42,7 @@ __ledf2 (DFtype a, DFtype b)
   FP_INIT_EXCEPTIONS;
   FP_UNPACK_RAW_D (A, a);
   FP_UNPACK_RAW_D (B, b);
-  FP_CMP_D (r, A, B, 2);
-  if (r == 2)
-    FP_SET_EXCEPTION (FP_EX_INVALID);
+  FP_CMP_D (r, A, B, 2, 2);
   FP_HANDLE_EXCEPTIONS;
 
   return r;