svn commit: r305971 - stable/11/lib/msun/src

Bruce Evans bde at FreeBSD.org
Mon Sep 19 12:34:30 UTC 2016


Author: bde
Date: Mon Sep 19 12:34:28 2016
New Revision: 305971
URL: https://svnweb.freebsd.org/changeset/base/305971

Log:
  MFC r305380:
  
  Fix missing fmodl() on arches with 53-bit long doubles.
  
  PR:		199422, 211965

Modified:
  stable/11/lib/msun/src/e_fmod.c

Modified: stable/11/lib/msun/src/e_fmod.c
==============================================================================
--- stable/11/lib/msun/src/e_fmod.c	Mon Sep 19 09:15:12 2016	(r305970)
+++ stable/11/lib/msun/src/e_fmod.c	Mon Sep 19 12:34:28 2016	(r305971)
@@ -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