maint: update copyright
[gnulib.git] / lib / remainderf.c
index 5d9ddb8..cc135bc 100644 (file)
@@ -1,5 +1,5 @@
 /* Remainder.
-   Copyright (C) 2012 Free Software Foundation, Inc.
+   Copyright (C) 2012-2014 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 /* 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
-}