svn commit: r305380 - head/lib/msun/src
Bruce Evans
bde at FreeBSD.org
Sun Sep 4 12:01:33 UTC 2016
Author: bde
Date: Sun Sep 4 12:01:32 2016
New Revision: 305380
URL: https://svnweb.freebsd.org/changeset/base/305380
Log:
Fix missing fmodl() on arches with 53-bit long doubles.
PR: 199422, 211965
MFC after: 1 week
Modified:
head/lib/msun/src/e_fmod.c
Modified: head/lib/msun/src/e_fmod.c
==============================================================================
--- head/lib/msun/src/e_fmod.c Sun Sep 4 08:58:35 2016 (r305379)
+++ head/lib/msun/src/e_fmod.c Sun Sep 4 12:01:32 2016 (r305380)
@@ -20,6 +20,8 @@ __FBSDID("$FreeBSD$");
* Method: shift and subtract
*/
+#include <float.h>
+
#include "math.h"
#include "math_private.h"
@@ -130,3 +132,7 @@ __ieee754_fmod(double x, double y)
}
return x; /* exact output */
}
+
+#if (LDBL_MANT_DIG == 53)
+__weak_reference(fmod, fmodl);
+#endif
More information about the svn-src-all
mailing list