home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 25.ddi / root.2 / usr / ucbinclude / sys / ieeefp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  2.7 KB  |  132 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10.  
  11. #ident    "@(#)//usr/ucbinclude/sys/ieeefp.h.sl 1.1 4.0 12/08/90 1247 AT&T-USL"
  12.  
  13. /*******************************************************************
  14.  
  15.         PROPRIETARY NOTICE (Combined)
  16.  
  17. This source code is unpublished proprietary information
  18. constituting, or derived under license from AT&T's UNIX(r) System V.
  19. In addition, portions of such source code were derived from Berkeley
  20. 4.3 BSD under license from the Regents of the University of
  21. California.
  22.  
  23.  
  24.  
  25.         Copyright Notice 
  26.  
  27. Notice of copyright on this source code product does not indicate 
  28. publication.
  29.  
  30.     (c) 1986,1987,1988,1989  Sun Microsystems, Inc
  31.     (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  32.               All rights reserved.
  33. ********************************************************************/ 
  34.  
  35. /*
  36.  * Definitions for constants and types for IEEE floating point.
  37.  */
  38.  
  39. #ifndef _sys_ieeefp_h
  40. #define _sys_ieeefp_h
  41.  
  42.  
  43. /*    Sun TYPES for IEEE floating point.    */
  44.  
  45. #ifdef u3b2
  46. enum fp_direction_type         /* rounding direction */
  47.     {
  48.     fp_nearest    = 0,
  49.     fp_tozero    = 1,
  50.     fp_positive    = 2,
  51.     fp_negative    = 3
  52.     } ;
  53. #endif
  54. #ifdef sparc
  55. enum fp_direction_type         /* rounding direction */
  56.     {
  57.     fp_nearest    = 0,
  58.     fp_tozero    = 1,
  59.     fp_positive    = 2,
  60.     fp_negative    = 3
  61.     } ;
  62. #endif
  63. #ifdef i386
  64. enum fp_direction_type         /* rounding direction */
  65.     {
  66.     fp_nearest    = 0,
  67.     fp_negative    = 1,
  68.     fp_positive    = 2,
  69.     fp_tozero    = 3
  70.     } ;
  71. #endif
  72. #ifdef mc68000
  73. enum fp_direction_type         /* rounding direction */
  74.     {
  75.     fp_nearest    = 0,
  76.     fp_tozero    = 1,
  77.     fp_negative    = 2,
  78.     fp_positive    = 3
  79.     } ;
  80. #endif
  81.  
  82. #ifdef i386
  83. enum fp_precision_type        /* extended rounding precision */
  84.     {
  85.     fp_single    = 0,
  86.     fp_precision_3    = 1,
  87.     fp_double    = 2,
  88.     fp_extended    = 3
  89.     } ;
  90. #else
  91. enum fp_precision_type        /* extended rounding precision */
  92.     {
  93.     fp_extended    = 0,
  94.     fp_single    = 1,
  95.     fp_double    = 2,
  96.     fp_precision_3    = 3
  97.     } ;
  98. #endif
  99.  
  100. #ifdef i386
  101. enum fp_exception_type        /* exceptions according to bit number */
  102.     {
  103.     fp_invalid    = 0,
  104.     fp_denormalized    = 1,
  105.     fp_division    = 2,
  106.     fp_overflow    = 3,
  107.     fp_underflow    = 4,
  108.     fp_inexact    = 5
  109.     } ;
  110. #else
  111. enum fp_exception_type        /* exceptions according to bit number */
  112.     {
  113.     fp_inexact    = 0,
  114.     fp_division    = 1,
  115.     fp_underflow    = 2,
  116.     fp_overflow    = 3,
  117.     fp_invalid    = 4
  118.     } ;
  119. #endif
  120.  
  121. enum fp_class_type        /* floating-point classes */
  122.     {
  123.     fp_zero        = 0,
  124.     fp_subnormal    = 1,
  125.     fp_normal    = 2,
  126.     fp_infinity       = 3,
  127.     fp_quiet    = 4,
  128.     fp_signaling    = 5
  129.     } ;
  130.  
  131. #endif /*!_sys_ieeefp_h*/
  132.