Print this page
remove support for non-ANSI compilation


   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*      Copyright (c) 1988 AT&T     */
  23 /*        All Rights Reserved   */
  24 
  25 
  26 /*


  27  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  28  * Use is subject to license terms.
  29  */
  30 
  31 #ifndef _FLOAT_H
  32 #define _FLOAT_H
  33 
  34 #pragma ident   "%Z%%M% %I%     %E% SMI"
  35 
  36 #include <sys/feature_tests.h>
  37 
  38 #ifdef  __cplusplus
  39 extern "C" {
  40 #endif
  41 
  42 #if defined(__sparc)
  43 
  44 #if defined(__STDC__)
  45 extern int __flt_rounds(void);
  46 #else   /* defined(__STDC__) */
  47 extern int __flt_rounds();
  48 #endif  /* defined(__STDC__) */
  49 #define FLT_ROUNDS      __flt_rounds()
  50 
  51 #else /* defined(__sparc) */
  52 
  53 #if defined(__STDC__)
  54 extern int __fltrounds(void);
  55 #else   /* defined (__STDC__) */
  56 extern int __fltrounds();
  57 #endif  /* defined(__STDC__) */
  58 #if defined(__amd64)
  59 #define FLT_ROUNDS      __fltrounds()
  60 #else   /* defined(__amd64) */
  61 extern int __flt_rounds;
  62 #define FLT_ROUNDS      __flt_rounds
  63 #endif  /* defined(__amd64) */
  64 #endif /* defined(__sparc) */
  65 
  66 /* Introduced in ISO/IEC 9899:1999 standard */
  67 #if defined(__EXTENSIONS__) || defined(_STDC_C99) || \
  68         (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX))
  69 #if defined(__FLT_EVAL_METHOD__)
  70 #define FLT_EVAL_METHOD __FLT_EVAL_METHOD__
  71 #else
  72 #define FLT_EVAL_METHOD -1
  73 #endif /* defined(__FLT_EVAL_METHOD__) */
  74 #endif /* defined(__EXTENSIONS__) || defined(_STDC_C99)... */
  75 
  76 #define FLT_RADIX       2
  77 #define FLT_MANT_DIG    24




   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*      Copyright (c) 1988 AT&T     */
  23 /*        All Rights Reserved   */
  24 
  25 
  26 /*
  27  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  28  *
  29  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  30  * Use is subject to license terms.
  31  */
  32 
  33 #ifndef _FLOAT_H
  34 #define _FLOAT_H
  35 


  36 #include <sys/feature_tests.h>
  37 
  38 #ifdef  __cplusplus
  39 extern "C" {
  40 #endif
  41 
  42 #if defined(__sparc)
  43 

  44 extern int __flt_rounds(void);



  45 #define FLT_ROUNDS      __flt_rounds()
  46 
  47 #else /* defined(__sparc) */
  48 

  49 extern int __fltrounds(void);
  50 


  51 #if defined(__amd64)
  52 #define FLT_ROUNDS      __fltrounds()
  53 #else   /* defined(__amd64) */
  54 extern int __flt_rounds;
  55 #define FLT_ROUNDS      __flt_rounds
  56 #endif  /* defined(__amd64) */
  57 #endif /* defined(__sparc) */
  58 
  59 /* Introduced in ISO/IEC 9899:1999 standard */
  60 #if defined(__EXTENSIONS__) || defined(_STDC_C99) || \
  61         (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX))
  62 #if defined(__FLT_EVAL_METHOD__)
  63 #define FLT_EVAL_METHOD __FLT_EVAL_METHOD__
  64 #else
  65 #define FLT_EVAL_METHOD -1
  66 #endif /* defined(__FLT_EVAL_METHOD__) */
  67 #endif /* defined(__EXTENSIONS__) || defined(_STDC_C99)... */
  68 
  69 #define FLT_RADIX       2
  70 #define FLT_MANT_DIG    24