// `cstdint` for NVRTC, which ships no device headers (see README.md).
// The fixed-width integers and the `*_C` literal macros, global and in `std`.

#ifndef PIE_NVRTC_CSTDINT_
#define PIE_NVRTC_CSTDINT_

typedef signed char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;

typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;

typedef int64_t intptr_t;
typedef uint64_t uintptr_t;

#define UINT16_C(value) value##U
#define UINT32_C(value) value##U

namespace std {

using ::int16_t;
using ::int32_t;
using ::int64_t;
using ::int8_t;

using ::uint16_t;
using ::uint32_t;
using ::uint64_t;
using ::uint8_t;

using ::intptr_t;
using ::uintptr_t;

}  // namespace std

#endif  // PIE_NVRTC_CSTDINT_
