Source-Changes-HG archive

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

[src/trunk]: src/lib/libm/src fix sun2 build; only IEEE math platform (and co...



details:   https://anonhg.NetBSD.org/src/rev/1e86a4e6daba
branches:  trunk
changeset: 817571:1e86a4e6daba
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Aug 26 08:20:31 2016 +0000

description:
fix sun2 build; only IEEE math platform (and coldfire) without fenv

diffstat:

 lib/libm/src/s_ilogb.c  |  6 +++++-
 lib/libm/src/s_ilogbf.c |  6 +++++-
 lib/libm/src/s_ilogbl.c |  8 ++++++--
 3 files changed, 16 insertions(+), 4 deletions(-)

diffs (72 lines):

diff -r e1bd9f979319 -r 1e86a4e6daba lib/libm/src/s_ilogb.c
--- a/lib/libm/src/s_ilogb.c    Fri Aug 26 08:01:55 2016 +0000
+++ b/lib/libm/src/s_ilogb.c    Fri Aug 26 08:20:31 2016 +0000
@@ -12,7 +12,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: s_ilogb.c,v 1.15 2016/08/24 10:03:32 christos Exp $");
+__RCSID("$NetBSD: s_ilogb.c,v 1.16 2016/08/26 08:20:31 christos Exp $");
 #endif
 
 /* ilogb(double x)
@@ -22,7 +22,11 @@
  */
 
 #include <math.h>
+#define __TEST_FENV
 #include <fenv.h>
+#ifndef __HAVE_FENV
+#define feraiseexcept(a)
+#endif
 #include "math_private.h"
 
 #ifndef __HAVE_LONG_DOUBLE
diff -r e1bd9f979319 -r 1e86a4e6daba lib/libm/src/s_ilogbf.c
--- a/lib/libm/src/s_ilogbf.c   Fri Aug 26 08:01:55 2016 +0000
+++ b/lib/libm/src/s_ilogbf.c   Fri Aug 26 08:20:31 2016 +0000
@@ -15,11 +15,15 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: s_ilogbf.c,v 1.9 2016/08/24 10:03:32 christos Exp $");
+__RCSID("$NetBSD: s_ilogbf.c,v 1.10 2016/08/26 08:20:31 christos Exp $");
 #endif
 
 #include <math.h>
+#define __TEST_FENV
 #include <fenv.h>
+#ifndef __HAVE_FENV
+#define feraiseexcept(a)
+#endif
 #include "math_private.h"
 
 int
diff -r e1bd9f979319 -r 1e86a4e6daba lib/libm/src/s_ilogbl.c
--- a/lib/libm/src/s_ilogbl.c   Fri Aug 26 08:01:55 2016 +0000
+++ b/lib/libm/src/s_ilogbl.c   Fri Aug 26 08:20:31 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: s_ilogbl.c,v 1.3 2016/08/24 10:03:32 christos Exp $    */
+/*     $NetBSD: s_ilogbl.c,v 1.4 2016/08/26 08:20:31 christos Exp $    */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,13 +30,17 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: s_ilogbl.c,v 1.3 2016/08/24 10:03:32 christos Exp $");
+__RCSID("$NetBSD: s_ilogbl.c,v 1.4 2016/08/26 08:20:31 christos Exp $");
 
 #include "namespace.h"
 
 #include <float.h>
 #include <math.h>
+#define __TEST_FENV
 #include <fenv.h>
+#ifndef __HAVE_FENV
+#define feraiseexcept(a)
+#endif
 #include <machine/ieee.h>
 
 #ifdef __HAVE_LONG_DOUBLE



Home | Main Index | Thread Index | Old Index