Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3/include use fenv.h



details:   https://anonhg.NetBSD.org/src/rev/eaefc769e7f6
branches:  trunk
changeset: 347416:eaefc769e7f6
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Aug 25 12:19:42 2016 +0000

description:
use fenv.h

diffstat:

 sys/arch/sh3/include/ieeefp.h |  23 ++---------------------
 1 files changed, 2 insertions(+), 21 deletions(-)

diffs (48 lines):

diff -r ee8196aafad9 -r eaefc769e7f6 sys/arch/sh3/include/ieeefp.h
--- a/sys/arch/sh3/include/ieeefp.h     Thu Aug 25 12:17:26 2016 +0000
+++ b/sys/arch/sh3/include/ieeefp.h     Thu Aug 25 12:19:42 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ieeefp.h,v 1.4 2008/08/05 16:47:42 matt Exp $ */
+/* $NetBSD: ieeefp.h,v 1.5 2016/08/25 12:19:42 christos Exp $ */
 
 /*
  * Written by J.T. Conklin, Apr 6, 1995
@@ -12,28 +12,11 @@
 
 #if defined(_NETBSD_SOURCE) || defined(_ISOC99_SOURCE)
 
-typedef int fenv_t;
-typedef int fexcept_t;
-
-#define        FE_INVALID      0x01    /* invalid operation exception */
-#define        FE_DENORMAL     0x02    /* denormalization exception */
-#define        FE_DIVBYZERO    0x04    /* divide-by-zero exception */
-#define        FE_OVERFLOW     0x08    /* overflow exception */
-#define        FE_UNDERFLOW    0x10    /* underflow exception */
-#define        FE_INEXACT      0x20    /* imprecise (loss of precision) */
-
-#define        FE_ALL_EXCEPT   0x3f
-
-#define        FE_TONEAREST    0       /* round to nearest representable number */
-#define        FE_DOWNWARD     1       /* round toward negative infinity */
-#define        FE_UPWARD       2       /* round toward positive infinity */
-#define        FE_TOWARDZERO   3       /* round to zero (truncate) */
+#include <fenv.h>
 
 #if defined(_NETBSD_SOURCE)
 
-typedef int fp_except;
 #define        FP_X_INV        FE_INVALID      /* invalid operation exception */
-#define        FP_X_DNML       FE_DENORMAL     /* denormalization exception */
 #define        FP_X_DZ         FE_DIVBYZERO    /* divide-by-zero exception */
 #define        FP_X_OFL        FE_OVERFLOW     /* overflow exception */
 #define        FP_X_UFL        FE_UNDERFLOW    /* underflow exception */
@@ -41,8 +24,6 @@
 
 typedef enum {
        FP_RN=FE_TONEAREST,     /* round to nearest representable number */
-       FP_RM=FE_DOWNWARD,      /* round toward negative infinity */
-       FP_RP=FE_UPWARD,        /* round toward positive infinity */
        FP_RZ=FE_TOWARDZERO     /* round to zero (truncate) */
 } fp_rnd;
 



Home | Main Index | Thread Index | Old Index