Source-Changes-HG archive

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

[src/trunk]: src/lib/libm/src Limit some rintl usage to #ifdef __HAVE_LONG_DO...



details:   https://anonhg.NetBSD.org/src/rev/e283caa2703c
branches:  trunk
changeset: 353454:e283caa2703c
user:      martin <martin%NetBSD.org@localhost>
date:      Sun May 07 11:29:21 2017 +0000

description:
Limit some rintl usage to #ifdef __HAVE_LONG_DOUBLE.
XXX should probably declare some aliases in the #else case

diffstat:

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

diffs (39 lines):

diff -r d217f7829442 -r e283caa2703c lib/libm/src/s_llrintl.c
--- a/lib/libm/src/s_llrintl.c  Sun May 07 10:37:00 2017 +0000
+++ b/lib/libm/src/s_llrintl.c  Sun May 07 11:29:21 2017 +0000
@@ -2,12 +2,15 @@
 #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.1 2017/05/06 18:03:24 christos Exp $");
+__RCSID("$NetBSD: s_llrintl.c,v 1.2 2017/05/07 11:29:21 martin Exp $");
 #endif
 
+#ifdef __HAVE_LONG_DOUBLE
 #define stype          long double
 #define        roundit         rintl
 #define dtype          long long
 #define        fn              llrintl
 
 #include "s_lrint.c"
+#endif
+
diff -r d217f7829442 -r e283caa2703c lib/libm/src/s_lrintl.c
--- a/lib/libm/src/s_lrintl.c   Sun May 07 10:37:00 2017 +0000
+++ b/lib/libm/src/s_lrintl.c   Sun May 07 11:29:21 2017 +0000
@@ -2,12 +2,14 @@
 #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.1 2017/05/06 18:03:24 christos Exp $");
+__RCSID("$NetBSD: s_lrintl.c,v 1.2 2017/05/07 11:29:21 martin Exp $");
 #endif
 
+#ifdef __HAVE_LONG_DOUBLE
 #define stype          long double
 #define        roundit         rintl
 #define dtype          long
 #define        fn              lrintl
 
 #include "s_lrint.c"
+#endif



Home | Main Index | Thread Index | Old Index