[BACK]Return to ieeefp.h CVS log [TXT][DIR] Up to [local] / sys / arch / sh / include

Annotation of sys/arch/sh/include/ieeefp.h, Revision 1.1

1.1     ! nbrk        1: /*     $OpenBSD: ieeefp.h,v 1.3 2006/10/11 00:56:35 drahn 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:
        !            12: typedef int fp_except;
        !            13: #define        FP_X_INV        0x10    /* invalid operation exception */
        !            14: #define        FP_X_DNML       0x20    /* denormalization exception */
        !            15: #define        FP_X_DZ         0x08    /* divide-by-zero exception */
        !            16: #define        FP_X_OFL        0x04    /* overflow exception */
        !            17: #define        FP_X_UFL        0x02    /* underflow exception */
        !            18: #define        FP_X_IMP        0x01    /* imprecise (loss of precision) */
        !            19:
        !            20: typedef enum {
        !            21:        FP_RN=0,                /* round to nearest representable number */
        !            22:        FP_RZ=1,                /* round to zero (truncate) */
        !            23:        /* the following two are not implemented on SH4{,A} */
        !            24:        FP_RP=2,                /* round toward positive infinity */
        !            25:        FP_RM=3                 /* round toward negative infinity */
        !            26: } fp_rnd;
        !            27:
        !            28: #endif /* !_SH_IEEEFP_H_ */

CVSweb