Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Sep 2016 12:01:32 +0000 (UTC)
From:      Bruce Evans <bde@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r305380 - head/lib/msun/src
Message-ID:  <201609041201.u84C1W0o023927@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609041201.u84C1W0o023927>