[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/arm/include/ieeefp.h

Version: -  FREEBSD  -  FREEBSD7  -  FREEBSD71  -  FREEBSD70  -  FREEBSD6  -  FREEBSD64  -  FREEBSD63  -  FREEBSD62  -  FREEBSD61  -  FREEBSD60  -  FREEBSD5  -  FREEBSD55  -  FREEBSD54  -  FREEBSD53  -  FREEBSD52  -  FREEBSD51  -  FREEBSD50  -  FREEBSD4  -  FREEBSD3  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  OPENSOLARIS  -  minix-3-1-1  -  TRUSTEDBSD-SEBSD  -  FREEBSD-LIBC  -  FREEBSD7-LIBC  -  FREEBSD6-LIBC  -  GLIBC27 
SearchContext: -  none  -  excerpts  -  bigexcerpts 

  1 /*      $NetBSD: ieeefp.h,v 1.1 2001/01/10 19:02:06 bjh21 Exp $ */
  2 /* $FreeBSD: src/sys/arm/include/ieeefp.h,v 1.2 2005/01/05 21:58:48 imp Exp $ */
  3 /*-
  4  * Based on ieeefp.h written by J.T. Conklin, Apr 28, 1995
  5  * Public domain.
  6  */
  7 
  8 #ifndef _MACHINE_IEEEFP_H_
  9 #define _MACHINE_IEEEFP_H_
 10 
 11 /* FP exception codes */
 12 #define FP_EXCEPT_INV   0
 13 #define FP_EXCEPT_DZ    1
 14 #define FP_EXCEPT_OFL   2
 15 #define FP_EXCEPT_UFL   3
 16 #define FP_EXCEPT_IMP   4
 17 
 18 /* Exception type (used by fpsetmask() et al.) */
 19 
 20 typedef int fp_except;
 21 
 22 /* Bit defines for fp_except */
 23 
 24 #define FP_X_INV        (1 << FP_EXCEPT_INV)    /* invalid operation exception */
 25 #define FP_X_DZ         (1 << FP_EXCEPT_DZ)     /* divide-by-zero exception */
 26 #define FP_X_OFL        (1 << FP_EXCEPT_OFL)    /* overflow exception */
 27 #define FP_X_UFL        (1 << FP_EXCEPT_UFL)    /* underflow exception */
 28 #define FP_X_IMP        (1 << FP_EXCEPT_IMP)    /* imprecise (loss of precision; "inexact") */
 29 
 30 /* Rounding modes */
 31 
 32 typedef enum {
 33     FP_RN=0,                    /* round to nearest representable number */
 34     FP_RP=1,                    /* round toward positive infinity */
 35     FP_RM=2,                    /* round toward negative infinity */
 36     FP_RZ=3                     /* round to zero (truncate) */
 37 } fp_rnd_t;
 38 
 39 /*
 40  * FP precision modes
 41  */
 42 typedef enum {
 43         FP_PS=0,        /* 24 bit (single-precision) */
 44         FP_PRS,         /* reserved */
 45         FP_PD,          /* 53 bit (double-precision) */
 46         FP_PE           /* 64 bit (extended-precision) */
 47 } fp_prec_t;
 48 
 49 #define fp_except_t     int
 50 
 51 #endif /* _MACHINE_IEEEFP_H_ */
 52 

Cache object: 36e60d62c26c3ec621113b873cd3deee


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.