Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/c++/v1/cfloat is written in an unsupported language. File is not indexed.

0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009 
0010 #ifndef _LIBCPP_CFLOAT
0011 #define _LIBCPP_CFLOAT
0012 
0013 /*
0014     cfloat synopsis
0015 
0016 Macros:
0017 
0018     FLT_ROUNDS
0019     FLT_EVAL_METHOD     // C99
0020     FLT_RADIX
0021 
0022     FLT_HAS_SUBNORM     // C11
0023     DBL_HAS_SUBNORM     // C11
0024     LDBL_HAS_SUBNORM    // C11
0025 
0026     FLT_MANT_DIG
0027     DBL_MANT_DIG
0028     LDBL_MANT_DIG
0029 
0030     DECIMAL_DIG         // C99
0031     FLT_DECIMAL_DIG     // C11
0032     DBL_DECIMAL_DIG     // C11
0033     LDBL_DECIMAL_DIG    // C11
0034 
0035     FLT_DIG
0036     DBL_DIG
0037     LDBL_DIG
0038 
0039     FLT_MIN_EXP
0040     DBL_MIN_EXP
0041     LDBL_MIN_EXP
0042 
0043     FLT_MIN_10_EXP
0044     DBL_MIN_10_EXP
0045     LDBL_MIN_10_EXP
0046 
0047     FLT_MAX_EXP
0048     DBL_MAX_EXP
0049     LDBL_MAX_EXP
0050 
0051     FLT_MAX_10_EXP
0052     DBL_MAX_10_EXP
0053     LDBL_MAX_10_EXP
0054 
0055     FLT_MAX
0056     DBL_MAX
0057     LDBL_MAX
0058 
0059     FLT_EPSILON
0060     DBL_EPSILON
0061     LDBL_EPSILON
0062 
0063     FLT_MIN
0064     DBL_MIN
0065     LDBL_MIN
0066 
0067     FLT_TRUE_MIN        // C11
0068     DBL_TRUE_MIN        // C11
0069     LDBL_TRUE_MIN       // C11
0070 */
0071 
0072 #if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0073 #  include <__cxx03/cfloat>
0074 #else
0075 #  include <__config>
0076 
0077 #  include <float.h>
0078 
0079 #  ifndef _LIBCPP_FLOAT_H
0080 #   error <cfloat> tried including <float.h> but didn't find libc++'s <float.h> header. \
0081           This usually means that your header search paths are not configured properly. \
0082           The header search paths should contain the C++ Standard Library headers before \
0083           any C Standard Library, and you are probably using compiler flags that make that \
0084           not be the case.
0085 #  endif
0086 
0087 #  if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0088 #    pragma GCC system_header
0089 #  endif
0090 #endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0091 
0092 #endif // _LIBCPP_CFLOAT