faccessat: port to Solaris 10
[gnulib.git] / lib / remainderf.c
index 5d9ddb8..93fd1a3 100644 (file)
 /* Specification.  */
 #include <math.h>
 
+#if HAVE_REMAINDER
+
 float
 remainderf (float x, float y)
 {
-#if HAVE_REMAINDER
   return (float) remainder ((double) x, (double) y);
+}
+
 #else
-  float i = roundf (x / y);
-  return fmaf (- i, y, x);
+
+# define USE_FLOAT
+# include "remainder.c"
+
 #endif
-}