|
|
|||
File indexing completed on 2026-05-03 08:14:08
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_INTTYPES_H 0011 // AIX system headers need inttypes.h to be re-enterable while _STD_TYPES_T 0012 // is defined until an inclusion of it without _STD_TYPES_T occurs, in which 0013 // case the header guard macro is defined. 0014 #if !defined(_AIX) || !defined(_STD_TYPES_T) 0015 # define _LIBCPP_INTTYPES_H 0016 #endif // _STD_TYPES_T 0017 0018 /* 0019 inttypes.h synopsis 0020 0021 This entire header is C99 / C++0X 0022 0023 #include <stdint.h> // <cinttypes> includes <cstdint> 0024 0025 Macros: 0026 0027 PRId8 0028 PRId16 0029 PRId32 0030 PRId64 0031 0032 PRIdLEAST8 0033 PRIdLEAST16 0034 PRIdLEAST32 0035 PRIdLEAST64 0036 0037 PRIdFAST8 0038 PRIdFAST16 0039 PRIdFAST32 0040 PRIdFAST64 0041 0042 PRIdMAX 0043 PRIdPTR 0044 0045 PRIi8 0046 PRIi16 0047 PRIi32 0048 PRIi64 0049 0050 PRIiLEAST8 0051 PRIiLEAST16 0052 PRIiLEAST32 0053 PRIiLEAST64 0054 0055 PRIiFAST8 0056 PRIiFAST16 0057 PRIiFAST32 0058 PRIiFAST64 0059 0060 PRIiMAX 0061 PRIiPTR 0062 0063 PRIo8 0064 PRIo16 0065 PRIo32 0066 PRIo64 0067 0068 PRIoLEAST8 0069 PRIoLEAST16 0070 PRIoLEAST32 0071 PRIoLEAST64 0072 0073 PRIoFAST8 0074 PRIoFAST16 0075 PRIoFAST32 0076 PRIoFAST64 0077 0078 PRIoMAX 0079 PRIoPTR 0080 0081 PRIu8 0082 PRIu16 0083 PRIu32 0084 PRIu64 0085 0086 PRIuLEAST8 0087 PRIuLEAST16 0088 PRIuLEAST32 0089 PRIuLEAST64 0090 0091 PRIuFAST8 0092 PRIuFAST16 0093 PRIuFAST32 0094 PRIuFAST64 0095 0096 PRIuMAX 0097 PRIuPTR 0098 0099 PRIx8 0100 PRIx16 0101 PRIx32 0102 PRIx64 0103 0104 PRIxLEAST8 0105 PRIxLEAST16 0106 PRIxLEAST32 0107 PRIxLEAST64 0108 0109 PRIxFAST8 0110 PRIxFAST16 0111 PRIxFAST32 0112 PRIxFAST64 0113 0114 PRIxMAX 0115 PRIxPTR 0116 0117 PRIX8 0118 PRIX16 0119 PRIX32 0120 PRIX64 0121 0122 PRIXLEAST8 0123 PRIXLEAST16 0124 PRIXLEAST32 0125 PRIXLEAST64 0126 0127 PRIXFAST8 0128 PRIXFAST16 0129 PRIXFAST32 0130 PRIXFAST64 0131 0132 PRIXMAX 0133 PRIXPTR 0134 0135 SCNd8 0136 SCNd16 0137 SCNd32 0138 SCNd64 0139 0140 SCNdLEAST8 0141 SCNdLEAST16 0142 SCNdLEAST32 0143 SCNdLEAST64 0144 0145 SCNdFAST8 0146 SCNdFAST16 0147 SCNdFAST32 0148 SCNdFAST64 0149 0150 SCNdMAX 0151 SCNdPTR 0152 0153 SCNi8 0154 SCNi16 0155 SCNi32 0156 SCNi64 0157 0158 SCNiLEAST8 0159 SCNiLEAST16 0160 SCNiLEAST32 0161 SCNiLEAST64 0162 0163 SCNiFAST8 0164 SCNiFAST16 0165 SCNiFAST32 0166 SCNiFAST64 0167 0168 SCNiMAX 0169 SCNiPTR 0170 0171 SCNo8 0172 SCNo16 0173 SCNo32 0174 SCNo64 0175 0176 SCNoLEAST8 0177 SCNoLEAST16 0178 SCNoLEAST32 0179 SCNoLEAST64 0180 0181 SCNoFAST8 0182 SCNoFAST16 0183 SCNoFAST32 0184 SCNoFAST64 0185 0186 SCNoMAX 0187 SCNoPTR 0188 0189 SCNu8 0190 SCNu16 0191 SCNu32 0192 SCNu64 0193 0194 SCNuLEAST8 0195 SCNuLEAST16 0196 SCNuLEAST32 0197 SCNuLEAST64 0198 0199 SCNuFAST8 0200 SCNuFAST16 0201 SCNuFAST32 0202 SCNuFAST64 0203 0204 SCNuMAX 0205 SCNuPTR 0206 0207 SCNx8 0208 SCNx16 0209 SCNx32 0210 SCNx64 0211 0212 SCNxLEAST8 0213 SCNxLEAST16 0214 SCNxLEAST32 0215 SCNxLEAST64 0216 0217 SCNxFAST8 0218 SCNxFAST16 0219 SCNxFAST32 0220 SCNxFAST64 0221 0222 SCNxMAX 0223 SCNxPTR 0224 0225 Types: 0226 0227 imaxdiv_t 0228 0229 intmax_t imaxabs(intmax_t j); 0230 imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom); 0231 intmax_t strtoimax(const char* restrict nptr, char** restrict endptr, int base); 0232 uintmax_t strtoumax(const char* restrict nptr, char** restrict endptr, int base); 0233 intmax_t wcstoimax(const wchar_t* restrict nptr, wchar_t** restrict endptr, int base); 0234 uintmax_t wcstoumax(const wchar_t* restrict nptr, wchar_t** restrict endptr, int base); 0235 0236 */ 0237 0238 #if defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS) 0239 # include <__cxx03/inttypes.h> 0240 #else 0241 # include <__config> 0242 0243 # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 0244 # pragma GCC system_header 0245 # endif 0246 0247 /* C99 stdlib (e.g. glibc < 2.18) does not provide format macros needed 0248 for C++11 unless __STDC_FORMAT_MACROS is defined 0249 */ 0250 # if defined(__cplusplus) && !defined(__STDC_FORMAT_MACROS) 0251 # define __STDC_FORMAT_MACROS 0252 # endif 0253 0254 # if __has_include_next(<inttypes.h>) 0255 # include_next <inttypes.h> 0256 # endif 0257 0258 # ifdef __cplusplus 0259 0260 # include <stdint.h> 0261 0262 # undef imaxabs 0263 # undef imaxdiv 0264 0265 # endif // __cplusplus 0266 #endif // defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS) 0267 0268 #endif // _LIBCPP_INTTYPES_H
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|