Move fp_except and fp_rnd definitions to machine/include.
This commit is contained in:
parent
4da3c343e1
commit
e957423a98
|
@ -7,38 +7,7 @@
|
|||
#define _IEEEFP_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
typedef int fp_except;
|
||||
#if defined(__i386__)
|
||||
#define FP_X_INV 0x01 /* invalid operation exception */
|
||||
#define FP_X_DNML 0x02 /* denormalization exception */
|
||||
#define FP_X_DZ 0x04 /* divide-by-zero exception */
|
||||
#define FP_X_OFL 0x08 /* overflow exception */
|
||||
#define FP_X_UFL 0x10 /* underflow exception */
|
||||
#define FP_X_IMP 0x20 /* imprecise (loss of precision) */
|
||||
#elif defined(__m68k__)
|
||||
#define FP_X_IMP 0x08 /* imprecise (loss of precision) */
|
||||
#define FP_X_DZ 0x10 /* divide-by-zero exception */
|
||||
#define FP_X_UFL 0x20 /* underflow exception */
|
||||
#define FP_X_OFL 0x40 /* overflow exception */
|
||||
#define FP_X_INV 0x80 /* invalid operation exception */
|
||||
#endif
|
||||
|
||||
#if defined(__i386__)
|
||||
typedef enum {
|
||||
FP_RN=0, /* round to nearest representable number */
|
||||
FP_RM=1, /* round toward negative infinity */
|
||||
FP_RP=2, /* round toward positive infinity */
|
||||
FP_RZ=3 /* round to zero (truncate) */
|
||||
} fp_rnd;
|
||||
#elif defined(__m68k__)
|
||||
typedef enum {
|
||||
FP_RN=0, /* round to nearest representable number */
|
||||
FP_RZ=1, /* round to zero (truncate) */
|
||||
FP_RM=2, /* round toward negative infinity */
|
||||
FP_RP=3 /* round toward positive infinity */
|
||||
} fp_rnd;
|
||||
#endif
|
||||
#include <machine/ieeefp.h>
|
||||
|
||||
extern fp_rnd fpgetround __P((void));
|
||||
extern fp_rnd fpsetround __P((fp_rnd));
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
/* $NetBSD: ieeefp.h,v 1.1 1995/04/09 21:36:53 mycroft Exp $ */
|
||||
|
||||
/* Just use the common m68k definition */
|
||||
#include <m68k/ieefp.h>
|
|
@ -0,0 +1,4 @@
|
|||
/* $NetBSD: ieeefp.h,v 1.1 1995/04/09 21:37:04 mycroft Exp $ */
|
||||
|
||||
/* Just use the common m68k definition */
|
||||
#include <m68k/ieefp.h>
|
|
@ -0,0 +1,4 @@
|
|||
/* $NetBSD: ieeefp.h,v 1.1 1995/04/09 21:37:19 mycroft Exp $ */
|
||||
|
||||
/* Just use the common m68k definition */
|
||||
#include <m68k/ieefp.h>
|
|
@ -0,0 +1,4 @@
|
|||
/* $NetBSD: ieeefp.h,v 1.1 1995/04/09 21:34:11 mycroft Exp $ */
|
||||
|
||||
/* Just use the common m68k definition */
|
||||
#include <m68k/ieefp.h>
|
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* Written by J.T. Conklin, Apr 6, 1995
|
||||
* Public domain.
|
||||
*/
|
||||
|
||||
#ifndef _I386_IEEEFP_H_
|
||||
#define _I386_IEEEFP_H_
|
||||
|
||||
typedef int fp_except;
|
||||
#define FP_X_INV 0x01 /* invalid operation exception */
|
||||
#define FP_X_DNML 0x02 /* denormalization exception */
|
||||
#define FP_X_DZ 0x04 /* divide-by-zero exception */
|
||||
#define FP_X_OFL 0x08 /* overflow exception */
|
||||
#define FP_X_UFL 0x10 /* underflow exception */
|
||||
#define FP_X_IMP 0x20 /* imprecise (loss of precision) */
|
||||
|
||||
typedef enum {
|
||||
FP_RN=0, /* round to nearest representable number */
|
||||
FP_RM=1, /* round toward negative infinity */
|
||||
FP_RP=2, /* round toward positive infinity */
|
||||
FP_RZ=3 /* round to zero (truncate) */
|
||||
} fp_rnd;
|
||||
|
||||
#endif /* _I386_IEEEFP_H_ */
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Written by J.T. Conklin, Apr 6, 1995
|
||||
* Public domain.
|
||||
*/
|
||||
|
||||
#ifndef _M68K_IEEEFP_H_
|
||||
#define _M68K_IEEEFP_H_
|
||||
|
||||
typedef int fp_except;
|
||||
#define FP_X_IMP 0x08 /* imprecise (loss of precision) */
|
||||
#define FP_X_DZ 0x10 /* divide-by-zero exception */
|
||||
#define FP_X_UFL 0x20 /* underflow exception */
|
||||
#define FP_X_OFL 0x40 /* overflow exception */
|
||||
#define FP_X_INV 0x80 /* invalid operation exception */
|
||||
|
||||
typedef enum {
|
||||
FP_RN=0, /* round to nearest representable number */
|
||||
FP_RZ=1, /* round to zero (truncate) */
|
||||
FP_RM=2, /* round toward negative infinity */
|
||||
FP_RP=3 /* round toward positive infinity */
|
||||
} fp_rnd;
|
||||
|
||||
#endif /* _M68K_IEEEFP_H_ */
|
|
@ -0,0 +1,4 @@
|
|||
/* $NetBSD: ieeefp.h,v 1.1 1995/04/09 21:37:33 mycroft Exp $ */
|
||||
|
||||
/* Just use the common m68k definition */
|
||||
#include <m68k/ieefp.h>
|
|
@ -0,0 +1,4 @@
|
|||
/* $NetBSD: ieeefp.h,v 1.1 1995/04/09 21:37:45 mycroft Exp $ */
|
||||
|
||||
/* Just use the common m68k definition */
|
||||
#include <m68k/ieefp.h>
|
Loading…
Reference in New Issue