1/* $OpenBSD: ieeefp.h,v 1.4 2011/04/24 16:57:11 martynas Exp $ */ 2/* $NetBSD: ieeefp.h,v 1.3 2002/04/28 17:10:34 uch Exp $ */ 3 4/* 5 * Written by J.T. Conklin, Apr 6, 1995 6 * Public domain. 7 */ 8 9#ifndef _SH_IEEEFP_H_ 10#define _SH_IEEEFP_H_ 11 12typedef int fp_except; 13#define FP_X_INV 0x10 /* invalid operation exception */ 14#define FP_X_DZ 0x08 /* divide-by-zero exception */ 15#define FP_X_OFL 0x04 /* overflow exception */ 16#define FP_X_UFL 0x02 /* underflow exception */ 17#define FP_X_IMP 0x01 /* imprecise (loss of precision) */ 18 19typedef enum { 20 FP_RN=0, /* round to nearest representable number */ 21 FP_RZ=1, /* round to zero (truncate) */ 22 /* the following two are not implemented on SH4{,A} */ 23 FP_RP=2, /* round toward positive infinity */ 24 FP_RM=3 /* round toward negative infinity */ 25} fp_rnd; 26 27#endif /* !_SH_IEEEFP_H_ */ 28