1  /*  DO NOT EDIT THIS FILE.
       2  
       3      It has been auto-edited by fixincludes from:
       4  
       5  	"fixinc/tests/inc/iso/math_c99.h"
       6  
       7      This had to be done to correct non-standard usages in the
       8      original, manufacturer supplied header file.  */
       9  
      10  
      11  
      12  #if defined( SOLARIS_MATH_1_CHECK )
      13  #ident	"@(#)math_c99.h	1.9	04/11/01 SMI"
      14  #undef	HUGE_VAL
      15  #define	HUGE_VAL	(__builtin_huge_val())
      16  #undef	HUGE_VALF
      17  #define	HUGE_VALF	(__builtin_huge_valf())
      18  #undef	HUGE_VALL
      19  #define	HUGE_VALL	(__builtin_huge_vall())
      20  #endif  /* SOLARIS_MATH_1_CHECK */
      21  
      22  
      23  #if defined( SOLARIS_MATH_10_CHECK )
      24  #pragma ident	"@(#)math_c99.h	1.12	07/01/21 SMI"
      25  #undef	isinf
      26  #define	isinf(x) __builtin_isinf(x)
      27  #endif  /* SOLARIS_MATH_10_CHECK */
      28  
      29  
      30  #if defined( SOLARIS_MATH_2_CHECK )
      31  #ident	"@(#)math_c99.h	1.9	04/11/01 SMI"
      32  #undef	INFINITY
      33  #define	INFINITY	(__builtin_inff())
      34  #endif  /* SOLARIS_MATH_2_CHECK */
      35  
      36  
      37  #if defined( SOLARIS_MATH_3_CHECK )
      38  #ident	"@(#)math_c99.h	1.9	04/11/01 SMI"
      39  #undef	NAN
      40  #define	NAN		(__builtin_nanf(""))
      41  #endif  /* SOLARIS_MATH_3_CHECK */
      42  
      43  
      44  #if defined( SOLARIS_MATH_4_CHECK )
      45  #ident	"@(#)math_c99.h	1.9	04/11/01 SMI"
      46  #undef	fpclassify
      47  #define	fpclassify(x) \
      48    __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))
      49  #endif  /* SOLARIS_MATH_4_CHECK */
      50  
      51  
      52  #if defined( SOLARIS_MATH_8_CHECK )
      53  #ident	"@(#)math_c99.h	1.9	04/11/01 SMI"
      54  #undef	signbit
      55  #define	signbit(x)	(sizeof(x) == sizeof(float) \
      56  			   ? __builtin_signbitf(x) \
      57  			   : sizeof(x) == sizeof(long double) \
      58  			     ? __builtin_signbitl(x) \
      59  			     : __builtin_signbit(x))
      60  #endif  /* SOLARIS_MATH_8_CHECK */
      61  
      62  
      63  #if defined( SOLARIS_MATH_9_CHECK )
      64  #ident	"@(#)math_c99.h	1.9	04/11/01 SMI"
      65  #undef	isgreater
      66  #define	isgreater(x, y)		__builtin_isgreater(x, y)
      67  #undef	isgreaterequal
      68  #define	isgreaterequal(x, y)	__builtin_isgreaterequal(x, y)
      69  #undef	isless
      70  #define	isless(x, y)		__builtin_isless(x, y)
      71  #undef	islessequal
      72  #define	islessequal(x, y)	__builtin_islessequal(x, y)
      73  #undef	islessgreater
      74  #define	islessgreater(x, y)	__builtin_islessgreater(x, y)
      75  #undef	isunordered
      76  #define	isunordered(x, y)	__builtin_isunordered(x, y)
      77  #endif  /* SOLARIS_MATH_9_CHECK */
      78  
      79  
      80  #if defined( SOLARIS_MATH_11_CHECK )
      81  /* @(#)math_c99.h	1.14	13/03/27 */
      82  #undef	signbit
      83  #define	signbit(x)	(sizeof(x) == sizeof(float) \
      84  			   ? __builtin_signbitf(x) \
      85  			   : sizeof(x) == sizeof(long double) \
      86  			     ? __builtin_signbitl(x) \
      87  			     : __builtin_signbit(x))
      88  #endif  /* SOLARIS_MATH_11_CHECK */