cfloat 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // -*- C++ -*-
  2. //===--------------------------- cfloat -----------------------------------===//
  3. //
  4. // The LLVM Compiler Infrastructure
  5. //
  6. // This file is dual licensed under the MIT and the University of Illinois Open
  7. // Source Licenses. See LICENSE.TXT for details.
  8. //
  9. //===----------------------------------------------------------------------===//
  10. #ifndef _LIBCPP_CFLOAT
  11. #define _LIBCPP_CFLOAT
  12. /*
  13. cfloat synopsis
  14. Macros:
  15. FLT_ROUNDS
  16. FLT_EVAL_METHOD // C99
  17. FLT_RADIX
  18. FLT_MANT_DIG
  19. DBL_MANT_DIG
  20. LDBL_MANT_DIG
  21. DECIMAL_DIG // C99
  22. FLT_DIG
  23. DBL_DIG
  24. LDBL_DIG
  25. FLT_MIN_EXP
  26. DBL_MIN_EXP
  27. LDBL_MIN_EXP
  28. FLT_MIN_10_EXP
  29. DBL_MIN_10_EXP
  30. LDBL_MIN_10_EXP
  31. FLT_MAX_EXP
  32. DBL_MAX_EXP
  33. LDBL_MAX_EXP
  34. FLT_MAX_10_EXP
  35. DBL_MAX_10_EXP
  36. LDBL_MAX_10_EXP
  37. FLT_MAX
  38. DBL_MAX
  39. LDBL_MAX
  40. FLT_EPSILON
  41. DBL_EPSILON
  42. LDBL_EPSILON
  43. FLT_MIN
  44. DBL_MIN
  45. LDBL_MIN
  46. */
  47. #include <__config>
  48. #include <float.h>
  49. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  50. #pragma GCC system_header
  51. #endif
  52. #ifndef FLT_EVAL_METHOD
  53. #define FLT_EVAL_METHOD __FLT_EVAL_METHOD__
  54. #endif
  55. #ifndef DECIMAL_DIG
  56. #define DECIMAL_DIG __DECIMAL_DIG__
  57. #endif
  58. #endif // _LIBCPP_CFLOAT