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

This commit is contained in:
christos 2016-08-26 08:20:31 +00:00
parent 6af98352e6
commit b1803eb858
3 changed files with 16 additions and 4 deletions

View File

@ -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 @@ __RCSID("$NetBSD: s_ilogb.c,v 1.15 2016/08/24 10:03:32 christos Exp $");
*/
#include <math.h>
#define __TEST_FENV
#include <fenv.h>
#ifndef __HAVE_FENV
#define feraiseexcept(a)
#endif
#include "math_private.h"
#ifndef __HAVE_LONG_DOUBLE

View File

@ -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

View File

@ -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