4#ifndef RUDIMENTS_INTTYPES_H
5#define RUDIMENTS_INTTYPES_H
7#include <rudiments/private/config.h>
17#define memorymap _memorymap
26#ifdef RUDIMENTS_REDEFINE_NULL
35 #include <rudiments/private/new.h>
38#if defined(RUDIMENTS_HAVE_STDINT_H)
40#elif defined(RUDIMENTS_HAVE_SYS_BITYPES_H)
45 #include <sys/bitypes.h>
46#elif defined(RUDIMENTS_HAVE_INTTYPES_H)
47 #if defined(RUDIMENTS_HAVE_VARARGS_H) && \
48 !defined(RUDIMENTS_HAVE_STDARG_H)
54#if defined(RUDIMENTS_HAVE_UCHAR_H)
62#ifndef RUDIMENTS_HAVE_BOOL
68 bool(
const long long &
b) {
77 bool(
const short &
b) {
83 bool(
const unsigned long long &
b) {
86 bool(
const unsigned long &
b) {
89 bool(
const unsigned int &
b) {
92 bool(
const unsigned short &
b) {
95 bool(
const unsigned char &
b) {
98 bool &operator=(
const bool &
b) {
102 bool &operator=(
const long long &
b) {
106 bool &operator=(
const long &
b) {
110 bool &operator=(
const int &
b) {
114 bool &operator=(
const short &
b) {
118 bool &operator=(
const char &
b) {
122 bool &operator=(
const unsigned long long &
b) {
126 bool &operator=(
const unsigned long &
b) {
130 bool &operator=(
const unsigned int &
b) {
134 bool &operator=(
const unsigned short &
b) {
138 bool &operator=(
const unsigned char &
b) {
148 int operator==(
const bool &
b) {
149 return value==
b.value;
151 int operator!=(
const bool &
b) {
152 return value!=
b.value;
158#ifndef RUDIMENTS_HAVE_TRUE_FALSE
164#ifndef RUDIMENTS_HAVE_INT8_T
165 typedef signed char int8_t;
167#ifndef RUDIMENTS_HAVE_UINT8_T
168 typedef unsigned char uint8_t;
170#ifndef RUDIMENTS_HAVE_INT16_T
171 typedef signed short int16_t;
173#ifndef RUDIMENTS_HAVE_UINT16_T
174 typedef unsigned short uint16_t;
176#ifndef RUDIMENTS_HAVE_INT32_T
177 typedef signed int int32_t;
179#ifndef RUDIMENTS_HAVE_UINT32_T
180 typedef unsigned int uint32_t;
184#ifndef RUDIMENTS_HAVE_INT64_T
185 #ifdef RUDIMENTS_HAVE_LONG_LONG
186 typedef signed long long int64_t;
188 typedef signed long int64_t;
191#ifndef RUDIMENTS_HAVE_UINT64_T
192 #ifdef RUDIMENTS_HAVE_LONG_LONG
193 typedef unsigned long long uint64_t;
195 typedef unsigned long uint64_t;
200#ifndef RUDIMENTS_HAVE_BYTE_T
201 typedef uint8_t byte_t;
205#ifndef RUDIMENTS_HAVE_CHAR8_T
208#if !defined(RUDIMENTS_HAVE_CHAR16_T) && \
209 defined(__cplusplus) && (__cplusplus<201103L)
212#ifndef RUDIMENTS_HAVE_CHAR32_T
217typedef uint16_t ucs2_t;