ieeefp.h

Go to the documentation of this file.
00001 /* 
00002  * Written by J.T. Conklin, Apr 6, 1995
00003  * Public domain.
00004  */
00005 #ifndef __MACHDEP_IEEEFP_H__
00006 #define __MACHDEP_IEEEFP_H__
00007 
00008 typedef int fp_except;
00009 #define FP_X_INV        0x01    /* invalid operation exception */
00010 #define FP_X_DNML       0x02    /* denormalization exception */
00011 #define FP_X_DZ         0x04    /* divide-by-zero exception */
00012 #define FP_X_OFL        0x08    /* overflow exception */
00013 #define FP_X_UFL        0x10    /* underflow exception */
00014 #define FP_X_IMP        0x20    /* imprecise (loss of precision) */
00015 
00016 typedef enum {
00017     FP_RN=0,                    /* round to nearest representable number */
00018     FP_RM=1,                    /* round toward negative infinity */
00019     FP_RP=2,                    /* round toward positive infinity */
00020     FP_RZ=3                     /* round to zero (truncate) */
00021 } fp_rnd;
00022 
00023 #endif

Generated on Wed May 24 23:04:17 2006 for LSE/OS by  doxygen 1.4.6