mirror of
https://github.com/darlinghq/darling-libcxx.git
synced 2024-11-24 12:29:57 +00:00
f5256e16df
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@103516 91177308-0d34-0410-b5e6-96231b3b80d8
258 lines
3.4 KiB
C++
258 lines
3.4 KiB
C++
// -*- C++ -*-
|
|
//===--------------------------- cinttypes --------------------------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef _LIBCPP_CINTTYPES
|
|
#define _LIBCPP_CINTTYPES
|
|
|
|
/*
|
|
cinttypes synopsis
|
|
|
|
This entire header is C99 / C++0X
|
|
|
|
#include <cstdint> // <cinttypes> includes <cstdint>
|
|
|
|
Macros:
|
|
|
|
PRId8
|
|
PRId16
|
|
PRId32
|
|
PRId64
|
|
|
|
PRIdLEAST8
|
|
PRIdLEAST16
|
|
PRIdLEAST32
|
|
PRIdLEAST64
|
|
|
|
PRIdFAST8
|
|
PRIdFAST16
|
|
PRIdFAST32
|
|
PRIdFAST64
|
|
|
|
PRIdMAX
|
|
PRIdPTR
|
|
|
|
PRIi8
|
|
PRIi16
|
|
PRIi32
|
|
PRIi64
|
|
|
|
PRIiLEAST8
|
|
PRIiLEAST16
|
|
PRIiLEAST32
|
|
PRIiLEAST64
|
|
|
|
PRIiFAST8
|
|
PRIiFAST16
|
|
PRIiFAST32
|
|
PRIiFAST64
|
|
|
|
PRIiMAX
|
|
PRIiPTR
|
|
|
|
PRIo8
|
|
PRIo16
|
|
PRIo32
|
|
PRIo64
|
|
|
|
PRIoLEAST8
|
|
PRIoLEAST16
|
|
PRIoLEAST32
|
|
PRIoLEAST64
|
|
|
|
PRIoFAST8
|
|
PRIoFAST16
|
|
PRIoFAST32
|
|
PRIoFAST64
|
|
|
|
PRIoMAX
|
|
PRIoPTR
|
|
|
|
PRIu8
|
|
PRIu16
|
|
PR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NoFAST8
|
|
SCNoFAST16
|
|
SCNoFAST32
|
|
SCNoFAST64
|
|
|
|
SCNoMAX
|
|
SCNoPTR
|
|
|
|
SCNu8
|
|
SCNu16
|
|
SCNu32
|
|
SCNu64
|
|
|
|
SCNuLEAST8
|
|
SCNuLEAST16
|
|
SCNuLEAST32
|
|
SCNuLEAST64
|
|
|
|
SCNuFAST8
|
|
SCNuFAST16
|
|
SCNuFAST32
|
|
SCNuFAST64
|
|
|
|
SCNuMAX
|
|
SCNuPTR
|
|
|
|
SCNx8
|
|
SCNx16
|
|
SCNx32
|
|
SCNx64
|
|
|
|
SCNxLEAST8
|
|
SCNxLEAST16
|
|
SCNxLEAST32
|
|
SCNxLEAST64
|
|
|
|
SCNxFAST8
|
|
SCNxFAST16
|
|
SCNxFAST32
|
|
SCNxFAST64
|
|
|
|
SCNxMAX
|
|
SCNxPTR
|
|
|
|
namespace std
|
|
{
|
|
|
|
Types:
|
|
|
|
imaxdiv_t
|
|
|
|
intmax_t imaxabs(intmax_t j);
|
|
imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom);
|
|
intmax_t strtoimax(const char* restrict nptr, char** restrict endptr, int base);
|
|
uintmax_t strtoumax(const char* restrict nptr, char** restrict endptr, int base);
|
|
intmax_t wcstoimax(const wchar_t* restrict nptr, wchar_t** restrict endptr, int base);
|
|
uintmax_t wcstoumax(const wchar_t* restrict nptr, wchar_t** restrict endptr, int base);
|
|
|
|
} // std
|
|
*/
|
|
|
|
#include <__config>
|
|
#include <cstdint>
|
|
#include <inttypes.h>
|
|
|
|
#pragma GCC system_header
|
|
|
|
_LIBCPP_BEGIN_NAMESPACE_STD
|
|
|
|
using::imaxdiv_t;
|
|
|
|
using::imaxabs;
|
|
using::imaxdiv;
|
|
using::strtoimax;
|
|
using::strtoumax;
|
|
using::wcstoimax;
|
|
using::wcstoumax;
|
|
|
|
_LIBCPP_END_NAMESPACE_STD
|
|
|
|
#endif // _LIBCPP_CINTTYPES
|