]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - soft-fp/letf2.c
soft-fp: Refactor exception handling for comparisons.
[thirdparty/glibc.git] / soft-fp / letf2.c
index 94b7d786d66bf92ad9d2bee0d67f23dc1ddded7a..1293519d21bb61a34135d556c26c93b7bbd28bf9 100644 (file)
@@ -42,9 +42,7 @@ __letf2 (TFtype a, TFtype b)
   FP_INIT_EXCEPTIONS;
   FP_UNPACK_RAW_Q (A, a);
   FP_UNPACK_RAW_Q (B, b);
-  FP_CMP_Q (r, A, B, 2);
-  if (r == 2)
-    FP_SET_EXCEPTION (FP_EX_INVALID);
+  FP_CMP_Q (r, A, B, 2, 2);
   FP_HANDLE_EXCEPTIONS;
 
   return r;