* soft-fp/Makefile (gcc-single-routines): Add unordsf2,
[platform/upstream/glibc.git] / soft-fp / op-common.h
index 46162ed..f30260e 100644 (file)
@@ -553,6 +553,14 @@ do {                                                       \
       }                                                                          \
   } while (0)
 
+/* Version to test unordered.  */
+
+#define _FP_CMP_UNORD(fs, wc, ret, X, Y)                               \
+  do {                                                                 \
+    ret = ((X##_e == _FP_EXPMAX_##fs && !_FP_FRAC_ZEROP_##wc(X))       \
+          || (Y##_e == _FP_EXPMAX_##fs && !_FP_FRAC_ZEROP_##wc(Y)));   \
+  } while (0)
+
 /*
  * Main square root routine.  The input value should be cooked.
  */