projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
faccessat: port to Solaris 10
[gnulib.git]
/
lib
/
remainderf.c
diff --git
a/lib/remainderf.c
b/lib/remainderf.c
index
5d9ddb8
..
93fd1a3
100644
(file)
--- a/
lib/remainderf.c
+++ b/
lib/remainderf.c
@@
-19,13
+19,17
@@
/* Specification. */
#include <math.h>
/* Specification. */
#include <math.h>
+#if HAVE_REMAINDER
+
float
remainderf (float x, float y)
{
float
remainderf (float x, float y)
{
-#if HAVE_REMAINDER
return (float) remainder ((double) x, (double) y);
return (float) remainder ((double) x, (double) y);
+}
+
#else
#else
- float i = roundf (x / y);
- return fmaf (- i, y, x);
+
+# define USE_FLOAT
+# include "remainder.c"
+
#endif
#endif
-}