/* Copyright 1999 Element 14 Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma force_top_level #pragma include_only_once /* stdint.h: ISO 'C' (9899:1999) library header, section 7.18 */ /* Copyright (C) Acorn Computers Ltd. 2002 */ /* version 1.02 */ #ifndef __stdint_h #define __stdint_h #if __STDC_VERSION__ < 199901 # error <stdint.h> can only be used in C99 #endif /* Types with exactly the specified width */ typedef signed char int8_t; typedef signed short int16_t; typedef signed int int32_t; typedef signed 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; /* The smallest types with at least the specified width */ typedef signed char int_least8_t; typedef signed short int_least16_t; typedef signed int int_least32_t; typedef signed long long int_least64_t; typedef unsigned char uint_least8_t; typedef unsigned short uint_least16_t; typedef unsigned int uint_least32_t; typedef unsigned long long uint_least64_t; /* The "fastest" types with at least the specified width */ typedef signed char int_fast8_t; typedef signed int int_fast16_t; /* actually 32 bits */ typedef signed int int_fast32_t; typedef signed long long int_fast64_t; typedef unsigned char uint_fast8_t; typedef unsigned int uint_fast16_t; /* actually 32 bits */ typedef unsigned int uint_fast32_t; typedef unsigned long long uint_fast64_t; /* Integer types capable of holding a "void *" pointer */ typedef signed int intptr_t; typedef unsigned int uintptr_t; /* Integer types that can hold any value of any type */ typedef signed long long intmax_t; typedef unsigned long long uintmax_t; #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) #define INT8_MIN (-128) #define INT16_MIN (-32768) #define INT32_MIN (~0x7FFFFFFF) #define INT64_MIN (~0x7FFFFFFFFFFFFFFF) #define INT8_MAX 127 #define INT16_MAX 32767 #define INT32_MAX 2147483647 #define INT64_MAX 9223372036854775807 #define UINT8_MAX 255 #define UINT16_MAX 65535 #define UINT32_MAX 4294967295u #define UINT64_MAX 18446744073709551615u #define INT_LEAST8_MIN (-128) #define INT_LEAST16_MIN (-32768) #define INT_LEAST32_MIN (~0x7FFFFFFF) #define INT_LEAST64_MIN (~0x7FFFFFFFFFFFFFFF) #define INT_LEAST8_MAX 127 #define INT_LEAST16_MAX 32767 #define INT_LEAST32_MAX 2147483647 #define INT_LEAST64_MAX 9223372036854775807 #define UINT_LEAST8_MAX 255 #define UINT_LEAST16_MAX 65535 #define UINT_LEAST32_MAX 4294967295u #define UINT_LEAST64_MAX 18446744073709551615u #define INT_FAST8_MIN (-128) #define INT_FAST16_MIN (~0x7FFFFFFF) #define INT_FAST32_MIN (~0x7FFFFFFF) #define INT_FAST64_MIN (~0x7FFFFFFFFFFFFFFF) #define INT_FAST8_MAX 127 #define INT_FAST16_MAX 2147483647 #define INT_FAST32_MAX 2147483647 #define INT_FAST64_MAX 9223372036854775807 #define UINT_FAST8_MAX 255u #define UINT_FAST16_MAX 4294967295u #define UINT_FAST32_MAX 4294967295u #define UINT_FAST64_MAX 18446744073709551615u #define INTPTR_MIN (~0x7FFFFFFF) #define INTPTR_MAX 2147483647 #define UINTPTR_MAX 4294967295u #define INTMAX_MIN (~0x7FFFFFFFFFFFFFFF) #define INTMAX_MAX 9223372036854775807 #define UINTMAX_MAX 18446744073709551615u #define PTRDIFF_MIN (~0x7FFFFFFF) #define PTRDIFF_MAX 2147483647 #define SIG_ATOMIC_MIN (~0x7FFFFFFF) #define SIG_ATOMIC_MAX 2147483647 #define SIZE_MAX 4294967295u #define WCHAR_MIN (~0x7FFFFFFF) #define WCHAR_MAX 2147483647 #endif #if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) #define INT8_C(n) n #define INT16_C(n) n #define INT32_C(n) n #define INT64_C(n) n##ll #define UINT8_C(n) n##u #define UINT16_C(n) n##u #define UINT32_C(n) n##u #define UINT64_C(n) n##ull #define INTMAX_C(n) n##ll #define UINTMAX_C(n) n##ull #endif #endif /* end of stdint.h */