remove dup definitions from fenv.h
This commit is contained in:
parent
7f10785380
commit
408e0ea0a3
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ieeefp.h,v 1.3 2008/08/05 16:47:42 matt Exp $ */
|
||||
/* $NetBSD: ieeefp.h,v 1.4 2015/12/22 05:28:46 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Written by J.T. Conklin, Apr 6, 1995
|
||||
@ -10,24 +10,10 @@
|
||||
|
||||
#include <sys/featuretest.h>
|
||||
|
||||
#include <powerpc/fenv.h>
|
||||
|
||||
#if defined(_NETBSD_SOURCE) || defined(_ISOC99_SOURCE)
|
||||
|
||||
typedef int fenv_t;
|
||||
typedef int fexcept_t;
|
||||
|
||||
#define FE_INEXACT 0x01 /* imprecise (loss of precision) */
|
||||
#define FE_DIVBYZERO 0x02 /* divide-by-zero exception */
|
||||
#define FE_OVERFLOW 0x04 /* underflow exception */
|
||||
#define FE_UNDERFLOW 0x08 /* overflow exception */
|
||||
#define FE_INVALID 0x10 /* invalid operation exception */
|
||||
|
||||
#define FE_ALL_EXCEPT 0x1f
|
||||
|
||||
#define FE_TONEAREST 0 /* round to nearest representable number */
|
||||
#define FE_TOWARDZERO 1 /* round to zero (truncate) */
|
||||
#define FE_UPWARD 2 /* round toward positive infinity */
|
||||
#define FE_DOWNWARD 3 /* round toward negative infinity */
|
||||
|
||||
#if !defined(_ISOC99_SOURCE)
|
||||
|
||||
typedef int fp_except;
|
||||
|
Loading…
Reference in New Issue
Block a user