Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 1 | // -*- C++ -*- |
| 2 | //===--------------------------- cfloat -----------------------------------===// |
| 3 | // |
Howard Hinnant | f5256e1 | 2010-05-11 21:36:01 +0000 | [diff] [blame] | 4 | // The LLVM Compiler Infrastructure |
Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 5 | // |
Howard Hinnant | b64f8b0 | 2010-11-16 22:09:02 +0000 | [diff] [blame] | 6 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 7 | // Source Licenses. See LICENSE.TXT for details. |
Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | |
| 11 | #ifndef _LIBCPP_CFLOAT |
| 12 | #define _LIBCPP_CFLOAT |
| 13 | |
| 14 | /* |
| 15 | cfloat synopsis |
| 16 | |
| 17 | Macros: |
| 18 | |
| 19 | FLT_ROUNDS |
| 20 | FLT_EVAL_METHOD // C99 |
| 21 | FLT_RADIX |
| 22 | |
| 23 | FLT_MANT_DIG |
| 24 | DBL_MANT_DIG |
| 25 | LDBL_MANT_DIG |
| 26 | |
| 27 | DECIMAL_DIG // C99 |
| 28 | |
| 29 | FLT_DIG |
| 30 | DBL_DIG |
| 31 | LDBL_DIG |
| 32 | |
| 33 | FLT_MIN_EXP |
| 34 | DBL_MIN_EXP |
| 35 | LDBL_MIN_EXP |
| 36 | |
| 37 | FLT_MIN_10_EXP |
| 38 | DBL_MIN_10_EXP |
| 39 | LDBL_MIN_10_EXP |
| 40 | |
| 41 | FLT_MAX_EXP |
| 42 | DBL_MAX_EXP |
| 43 | LDBL_MAX_EXP |
| 44 | |
| 45 | FLT_MAX_10_EXP |
| 46 | DBL_MAX_10_EXP |
| 47 | LDBL_MAX_10_EXP |
| 48 | |
| 49 | FLT_MAX |
| 50 | DBL_MAX |
| 51 | LDBL_MAX |
| 52 | |
| 53 | FLT_EPSILON |
| 54 | DBL_EPSILON |
| 55 | LDBL_EPSILON |
| 56 | |
| 57 | FLT_MIN |
| 58 | DBL_MIN |
| 59 | LDBL_MIN |
| 60 | |
| 61 | */ |
| 62 | |
| 63 | #include <__config> |
| 64 | #include <float.h> |
| 65 | |
| 66 | #pragma GCC system_header |
| 67 | |
| 68 | #ifndef FLT_EVAL_METHOD |
| 69 | #define FLT_EVAL_METHOD __FLT_EVAL_METHOD__ |
| 70 | #endif |
| 71 | |
| 72 | #ifndef DECIMAL_DIG |
| 73 | #define DECIMAL_DIG __DECIMAL_DIG__ |
| 74 | #endif |
| 75 | |
| 76 | #endif // _LIBCPP_CFLOAT |