1178172Simp/* $OpenBSD: ieeefp.h,v 1.2 1999/01/27 04:46:05 imp Exp $ */ 2178172Simp 3178172Simp/*- 4178172Simp * Written by J.T. Conklin, Apr 11, 1995 5178172Simp * Public domain. 6178172Simp * 7178172Simp * JNPR: ieeefp.h,v 1.1 2006/08/07 05:38:57 katta 8178172Simp * $FreeBSD$ 9178172Simp */ 10178172Simp 11178172Simp#ifndef _MACHINE_IEEEFP_H_ 12178172Simp#define _MACHINE_IEEEFP_H_ 13178172Simp 14226607Sdas/* Deprecated historical FPU control interface */ 15226607Sdas 16178172Simptypedef int fp_except; 17178172Simptypedef int fp_except_t; 18178172Simp 19178172Simp#define FP_X_IMP 0x01 /* imprecise (loss of precision) */ 20178172Simp#define FP_X_UFL 0x02 /* underflow exception */ 21178172Simp#define FP_X_OFL 0x04 /* overflow exception */ 22178172Simp#define FP_X_DZ 0x08 /* divide-by-zero exception */ 23178172Simp#define FP_X_INV 0x10 /* invalid operation exception */ 24178172Simp 25178172Simptypedef enum { 26178172Simp FP_RN=0, /* round to nearest representable number */ 27178172Simp FP_RZ=1, /* round to zero (truncate) */ 28178172Simp FP_RP=2, /* round toward positive infinity */ 29178172Simp FP_RM=3 /* round toward negative infinity */ 30178172Simp} fp_rnd; 31178172Simp 32178172Simptypedef fp_rnd fp_rnd_t; 33178172Simp 34178172Simp#endif /* !_MACHINE_IEEEFP_H_ */ 35