Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libm/src libm: Need <math.h> for __HAVE_LONG_DOUBLE.



details:   https://anonhg.NetBSD.org/src/rev/33d166f40215
branches:  trunk
changeset: 373876:33d166f40215
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Mar 13 18:26:32 2023 +0000

description:
libm: Need <math.h> for __HAVE_LONG_DOUBLE.

Fixes missing definitions of lrintl, llrintl on various platforms.

diffstat:

 lib/libm/src/s_llrintl.c |  4 +++-
 lib/libm/src/s_lrintl.c  |  4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 837b8038c3a4 -r 33d166f40215 lib/libm/src/s_llrintl.c
--- a/lib/libm/src/s_llrintl.c  Mon Mar 13 18:18:36 2023 +0000
+++ b/lib/libm/src/s_llrintl.c  Mon Mar 13 18:26:32 2023 +0000
@@ -2,9 +2,11 @@
 #ifdef __FreeBSD__
 __FBSDID("$FreeBSD: head/lib/msun/src/s_llrintl.c 175309 2008-01-14 02:12:07Z das $");
 #else
-__RCSID("$NetBSD: s_llrintl.c,v 1.2 2017/05/07 11:29:21 martin Exp $");
+__RCSID("$NetBSD: s_llrintl.c,v 1.3 2023/03/13 18:26:32 riastradh Exp $");
 #endif
 
+#include <math.h>
+
 #ifdef __HAVE_LONG_DOUBLE
 #define stype          long double
 #define        roundit         rintl
diff -r 837b8038c3a4 -r 33d166f40215 lib/libm/src/s_lrintl.c
--- a/lib/libm/src/s_lrintl.c   Mon Mar 13 18:18:36 2023 +0000
+++ b/lib/libm/src/s_lrintl.c   Mon Mar 13 18:26:32 2023 +0000
@@ -2,9 +2,11 @@
 #ifdef __FreeBSD__
 __FBSDID("$FreeBSD: head/lib/msun/src/s_lrintl.c 175309 2008-01-14 02:12:07Z das $");
 #else
-__RCSID("$NetBSD: s_lrintl.c,v 1.2 2017/05/07 11:29:21 martin Exp $");
+__RCSID("$NetBSD: s_lrintl.c,v 1.3 2023/03/13 18:26:32 riastradh Exp $");
 #endif
 
+#include <math.h>
+
 #ifdef __HAVE_LONG_DOUBLE
 #define stype          long double
 #define        roundit         rintl



Home | Main Index | Thread Index | Old Index