 |
Zephyr API 3.6.99
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
7#ifndef ZEPHYR_INCLUDE_TOOLCHAIN_STDINT_H_
8#define ZEPHYR_INCLUDE_TOOLCHAIN_STDINT_H_
23#if !defined(__SIZEOF_INT__)
25#if defined(__INT_MAX__)
27#define __Z_INT_MAX __INT_MAX__
30#define __Z_INT_MAX INT_MAX
34#if __Z_INT_MAX == 0x7fff
35#define __SIZEOF_INT__ 2
36#elif __Z_INT_MAX == 0x7fffffffL
37#define __SIZEOF_INT__ 4
38#elif __Z_INT_MAX > 0x7fffffffL
39#define __SIZEOF_INT__ 8
46#if __SIZEOF_INT__ != 4
47#error "unexpected int width"
52#undef __INT_FAST32_TYPE__
53#undef __UINT_FAST32_TYPE__
54#undef __INT_LEAST32_TYPE__
55#undef __UINT_LEAST32_TYPE__
58#undef __INT_FAST64_TYPE__
59#undef __UINT_FAST64_TYPE__
60#undef __INT_LEAST64_TYPE__
61#undef __UINT_LEAST64_TYPE__
63#define __INT32_TYPE__ int
64#define __UINT32_TYPE__ unsigned int
65#define __INT_FAST32_TYPE__ __INT32_TYPE__
66#define __UINT_FAST32_TYPE__ __UINT32_TYPE__
67#define __INT_LEAST32_TYPE__ __INT32_TYPE__
68#define __UINT_LEAST32_TYPE__ __UINT32_TYPE__
69#define __INT64_TYPE__ long long int
70#define __UINT64_TYPE__ unsigned long long int
71#define __INT_FAST64_TYPE__ __INT64_TYPE__
72#define __UINT_FAST64_TYPE__ __UINT64_TYPE__
73#define __INT_LEAST64_TYPE__ __INT64_TYPE__
74#define __UINT_LEAST64_TYPE__ __UINT64_TYPE__
83#if __SIZEOF_POINTER__ != __SIZEOF_LONG__
84#error "unexpected size difference between pointers and long ints"
88#undef __UINTPTR_TYPE__
89#define __INTPTR_TYPE__ long int
90#define __UINTPTR_TYPE__ long unsigned int
101#define __INT32_C(c) c
102#define __UINT32_C(c) c ## U
103#define __INT64_C(c) c ## LL
104#define __UINT64_C(c) c ## ULL