float.h revision 302408
1// -*- C++ -*- 2//===--------------------------- float.h ----------------------------------===// 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 11#ifndef _LIBCPP_FLOAT_H 12#define _LIBCPP_FLOAT_H 13 14/* 15 float.h synopsis 16 17Macros: 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 65#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 66#pragma GCC system_header 67#endif 68 69#include_next <float.h> 70 71#ifdef __cplusplus 72 73#ifndef FLT_EVAL_METHOD 74#define FLT_EVAL_METHOD __FLT_EVAL_METHOD__ 75#endif 76 77#ifndef DECIMAL_DIG 78#define DECIMAL_DIG __DECIMAL_DIG__ 79#endif 80 81#endif // __cplusplus 82 83#endif // _LIBCPP_FLOAT_H 84