Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Sep 2016 12:34:29 +0000 (UTC)
From:      Bruce Evans <bde@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r305971 - stable/11/lib/msun/src
Message-ID:  <201609191234.u8JCYTUo052934@repo.freebsd.org>

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



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