2018-11-05 18:40:48 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
2019-02-25 12:05:32 +03:00
|
|
|
typedef __UINT64_TYPE__ uint64_t;
|
|
|
|
typedef __UINT32_TYPE__ uint32_t;
|
|
|
|
typedef __UINT16_TYPE__ uint16_t;
|
|
|
|
typedef __UINT8_TYPE__ uint8_t;
|
|
|
|
|
|
|
|
typedef __INT64_TYPE__ int64_t;
|
|
|
|
typedef __INT32_TYPE__ int32_t;
|
|
|
|
typedef __INT16_TYPE__ int16_t;
|
|
|
|
typedef __INT8_TYPE__ int8_t;
|
|
|
|
|
|
|
|
typedef __UINT_FAST8_TYPE__ uint_fast8_t;
|
|
|
|
typedef __UINT_FAST16_TYPE__ uint_fast16_t;
|
|
|
|
typedef __UINT_FAST32_TYPE__ uint_fast32_t;
|
|
|
|
typedef __UINT_FAST64_TYPE__ uint_fast64_t;
|
|
|
|
|
|
|
|
typedef __INT_FAST8_TYPE__ int_fast8_t;
|
|
|
|
typedef __INT_FAST16_TYPE__ int_fast16_t;
|
|
|
|
typedef __INT_FAST32_TYPE__ int_fast32_t;
|
|
|
|
typedef __INT_FAST64_TYPE__ int_fast64_t;
|
2018-11-05 18:40:48 +03:00
|
|
|
|
2019-03-27 03:40:55 +03:00
|
|
|
typedef __UINT_LEAST8_TYPE__ uint_least8_t;
|
|
|
|
typedef __UINT_LEAST16_TYPE__ uint_least16_t;
|
|
|
|
typedef __UINT_LEAST32_TYPE__ uint_least32_t;
|
|
|
|
typedef __UINT_LEAST64_TYPE__ uint_least64_t;
|
|
|
|
|
|
|
|
typedef __INT_LEAST8_TYPE__ int_least8_t;
|
|
|
|
typedef __INT_LEAST16_TYPE__ int_least16_t;
|
|
|
|
typedef __INT_LEAST32_TYPE__ int_least32_t;
|
|
|
|
typedef __INT_LEAST64_TYPE__ int_least64_t;
|
|
|
|
|
2019-02-24 17:19:32 +03:00
|
|
|
#define __int8_t_defined 1
|
|
|
|
#define __uint8_t_defined 1
|
|
|
|
#define __int16_t_defined 1
|
|
|
|
#define __uint16_t_defined 1
|
|
|
|
#define __int32_t_defined 1
|
|
|
|
#define __uint32_t_defined 1
|
|
|
|
#define __int64_t_defined 1
|
|
|
|
#define __uint64_t_defined 1
|
|
|
|
|
|
|
|
typedef __PTRDIFF_TYPE__ uintptr_t;
|
|
|
|
typedef __PTRDIFF_TYPE__ intptr_t;
|
|
|
|
#define INTPTR_MAX PTRDIFF_MAX
|
|
|
|
#define INTPTR_MIN PTRDIFF_MIN
|
|
|
|
#define UINTPTR_MAX __UINTPTR_MAX__
|
|
|
|
|
|
|
|
typedef __UINTMAX_TYPE__ uintmax_t;
|
|
|
|
#define UINTMAX_MAX __UINTMAX_MAX__
|
|
|
|
#define UINTMAX_MIN __UINTMAX_MIN__
|
|
|
|
|
|
|
|
typedef __INTMAX_TYPE__ intmax_t;
|
|
|
|
#define INTMAX_MAX __INTMAX_MAX__
|
|
|
|
#define INTMAX_MIN (-INTMAX_MAX - 1)
|
2019-02-08 04:38:21 +03:00
|
|
|
|
2018-11-07 12:23:16 +03:00
|
|
|
#define INT8_MIN (-128)
|
|
|
|
#define INT16_MIN (-32767-1)
|
|
|
|
#define INT32_MIN (-2147483647-1)
|
2019-02-27 02:02:01 +03:00
|
|
|
#define INT64_MIN (-9223372036854775807LL-1LL)
|
2018-11-07 12:23:16 +03:00
|
|
|
#define INT8_MAX (127)
|
|
|
|
#define INT16_MAX (32767)
|
|
|
|
#define INT32_MAX (2147483647)
|
2019-02-27 02:02:01 +03:00
|
|
|
#define INT64_MAX (9223372036854775807LL)
|
2018-11-07 12:23:16 +03:00
|
|
|
#define UINT8_MAX (255)
|
|
|
|
#define UINT16_MAX (65535)
|
|
|
|
#define UINT32_MAX (4294967295U)
|
2019-02-27 02:02:01 +03:00
|
|
|
#define UINT64_MAX (18446744073709551615ULL)
|
|
|
|
|
2018-11-07 12:23:16 +03:00
|
|
|
|
2019-02-24 17:19:32 +03:00
|
|
|
#define INT64_C(x) x##LL
|
|
|
|
#define UINT64_C(x) x##ULL
|
|
|
|
|
2018-11-05 18:40:48 +03:00
|
|
|
__END_DECLS
|
|
|
|
|