math_c99.h 2.4 KB

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