The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ 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  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

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

Cache object: a371b1df41ccd9c6a9b518229c773ec5


[ 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.