2005-03-07 04:51:38 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2004, 2005 by
|
|
|
|
* Ralf Corsepius, Ulm/Germany. All rights reserved.
|
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, and distribute this software
|
|
|
|
* is freely granted, provided that this notice is preserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _STDINT_H
|
|
|
|
#define _STDINT_H
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#include <machine/_default_types.h>
|
2014-10-09 23:57:50 +08:00
|
|
|
#include <sys/_intsup.h>
|
2015-04-02 02:34:08 +08:00
|
|
|
#include <sys/_stdint.h>
|
2012-10-17 02:45:24 +08:00
|
|
|
|
2005-03-07 04:51:38 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef ___int_least8_t_defined
|
|
|
|
typedef __int_least8_t int_least8_t;
|
|
|
|
typedef __uint_least8_t uint_least8_t;
|
2005-03-07 04:51:38 +08:00
|
|
|
#define __int_least8_t_defined 1
|
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef ___int_least16_t_defined
|
|
|
|
typedef __int_least16_t int_least16_t;
|
|
|
|
typedef __uint_least16_t uint_least16_t;
|
2005-03-07 04:51:38 +08:00
|
|
|
#define __int_least16_t_defined 1
|
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef ___int_least32_t_defined
|
|
|
|
typedef __int_least32_t int_least32_t;
|
|
|
|
typedef __uint_least32_t uint_least32_t;
|
2005-03-07 04:51:38 +08:00
|
|
|
#define __int_least32_t_defined 1
|
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef ___int_least64_t_defined
|
|
|
|
typedef __int_least64_t int_least64_t;
|
|
|
|
typedef __uint_least64_t uint_least64_t;
|
2005-03-07 04:51:38 +08:00
|
|
|
#define __int_least64_t_defined 1
|
|
|
|
#endif
|
|
|
|
|
2005-10-07 03:46:21 +08:00
|
|
|
/*
|
|
|
|
* Fastest minimum-width integer types
|
|
|
|
*
|
|
|
|
* Assume int to be the fastest type for all types with a width
|
|
|
|
* less than __INT_MAX__ rsp. INT_MAX
|
|
|
|
*/
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT_FAST8_TYPE__
|
|
|
|
typedef __INT_FAST8_TYPE__ int_fast8_t;
|
|
|
|
typedef __UINT_FAST8_TYPE__ uint_fast8_t;
|
|
|
|
#define __int_fast8_t_defined 1
|
|
|
|
#elif __STDINT_EXP(INT_MAX) >= 0x7f
|
2005-10-07 03:46:21 +08:00
|
|
|
typedef signed int int_fast8_t;
|
|
|
|
typedef unsigned int uint_fast8_t;
|
|
|
|
#define __int_fast8_t_defined 1
|
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT_FAST16_TYPE__
|
|
|
|
typedef __INT_FAST16_TYPE__ int_fast16_t;
|
|
|
|
typedef __UINT_FAST16_TYPE__ uint_fast16_t;
|
|
|
|
#define __int_fast16_t_defined 1
|
|
|
|
#elif __STDINT_EXP(INT_MAX) >= 0x7fff
|
2005-10-07 03:46:21 +08:00
|
|
|
typedef signed int int_fast16_t;
|
|
|
|
typedef unsigned int uint_fast16_t;
|
|
|
|
#define __int_fast16_t_defined 1
|
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT_FAST32_TYPE__
|
|
|
|
typedef __INT_FAST32_TYPE__ int_fast32_t;
|
|
|
|
typedef __UINT_FAST32_TYPE__ uint_fast32_t;
|
|
|
|
#define __int_fast32_t_defined 1
|
|
|
|
#elif __STDINT_EXP(INT_MAX) >= 0x7fffffff
|
2005-10-07 03:46:21 +08:00
|
|
|
typedef signed int int_fast32_t;
|
|
|
|
typedef unsigned int uint_fast32_t;
|
|
|
|
#define __int_fast32_t_defined 1
|
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT_FAST64_TYPE__
|
|
|
|
typedef __INT_FAST64_TYPE__ int_fast64_t;
|
|
|
|
typedef __UINT_FAST64_TYPE__ uint_fast64_t;
|
|
|
|
#define __int_fast64_t_defined 1
|
|
|
|
#elif __STDINT_EXP(INT_MAX) > 0x7fffffff
|
2005-10-07 03:46:21 +08:00
|
|
|
typedef signed int int_fast64_t;
|
|
|
|
typedef unsigned int uint_fast64_t;
|
|
|
|
#define __int_fast64_t_defined 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Fall back to [u]int_least<N>_t for [u]int_fast<N>_t types
|
|
|
|
* not having been defined, yet.
|
|
|
|
* Leave undefined, if [u]int_least<N>_t should not be available.
|
|
|
|
*/
|
|
|
|
#if !__int_fast8_t_defined
|
|
|
|
#if __int_least8_t_defined
|
|
|
|
typedef int_least8_t int_fast8_t;
|
|
|
|
typedef uint_least8_t uint_fast8_t;
|
|
|
|
#define __int_fast8_t_defined 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !__int_fast16_t_defined
|
|
|
|
#if __int_least16_t_defined
|
|
|
|
typedef int_least16_t int_fast16_t;
|
|
|
|
typedef uint_least16_t uint_fast16_t;
|
|
|
|
#define __int_fast16_t_defined 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !__int_fast32_t_defined
|
|
|
|
#if __int_least32_t_defined
|
|
|
|
typedef int_least32_t int_fast32_t;
|
|
|
|
typedef uint_least32_t uint_fast32_t;
|
|
|
|
#define __int_fast32_t_defined 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !__int_fast64_t_defined
|
|
|
|
#if __int_least64_t_defined
|
|
|
|
typedef int_least64_t int_fast64_t;
|
|
|
|
typedef uint_least64_t uint_fast64_t;
|
|
|
|
#define __int_fast64_t_defined 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INTPTR_TYPE__
|
|
|
|
#define INTPTR_MIN (-__INTPTR_MAX__ - 1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INTPTR_MAX (__INTPTR_MAX__)
|
|
|
|
#define UINTPTR_MAX (__UINTPTR_MAX__)
|
2013-12-04 00:04:41 +08:00
|
|
|
#elif defined(__PTRDIFF_TYPE__)
|
2009-04-17 02:29:51 +08:00
|
|
|
#define INTPTR_MAX PTRDIFF_MAX
|
|
|
|
#define INTPTR_MIN PTRDIFF_MIN
|
2009-04-25 05:55:07 +08:00
|
|
|
#ifdef __UINTPTR_MAX__
|
2015-04-02 02:40:43 +08:00
|
|
|
#define UINTPTR_MAX (__UINTPTR_MAX__)
|
2009-04-25 05:55:07 +08:00
|
|
|
#else
|
2009-04-17 02:29:51 +08:00
|
|
|
#define UINTPTR_MAX (2UL * PTRDIFF_MAX + 1)
|
2009-04-25 05:55:07 +08:00
|
|
|
#endif
|
2005-03-07 04:51:38 +08:00
|
|
|
#else
|
|
|
|
/*
|
|
|
|
* Fallback to hardcoded values,
|
|
|
|
* should be valid on cpu's with 32bit int/32bit void*
|
|
|
|
*/
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INTPTR_MAX (__STDINT_EXP(LONG_MAX))
|
2009-04-17 02:29:51 +08:00
|
|
|
#define INTPTR_MIN (-__STDINT_EXP(LONG_MAX) - 1)
|
|
|
|
#define UINTPTR_MAX (__STDINT_EXP(LONG_MAX) * 2UL + 1)
|
2005-03-07 04:51:38 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Limits of Specified-Width Integer Types */
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT8_MAX__
|
|
|
|
#define INT8_MIN (-__INT8_MAX__ - 1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT8_MAX (__INT8_MAX__)
|
|
|
|
#define UINT8_MAX (__UINT8_MAX__)
|
2013-12-04 00:04:41 +08:00
|
|
|
#elif defined(__int8_t_defined)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT8_MIN (-128)
|
|
|
|
#define INT8_MAX (127)
|
|
|
|
#define UINT8_MAX (255)
|
2005-03-07 04:51:38 +08:00
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT_LEAST8_MAX__
|
|
|
|
#define INT_LEAST8_MIN (-__INT_LEAST8_MAX__ - 1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_LEAST8_MAX (__INT_LEAST8_MAX__)
|
|
|
|
#define UINT_LEAST8_MAX (__UINT_LEAST8_MAX__)
|
2013-12-04 00:04:41 +08:00
|
|
|
#elif defined(__int_least8_t_defined)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_LEAST8_MIN (-128)
|
|
|
|
#define INT_LEAST8_MAX (127)
|
|
|
|
#define UINT_LEAST8_MAX (255)
|
2005-03-07 04:51:38 +08:00
|
|
|
#else
|
|
|
|
#error required type int_least8_t missing
|
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT16_MAX__
|
|
|
|
#define INT16_MIN (-__INT16_MAX__ - 1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT16_MAX (__INT16_MAX__)
|
|
|
|
#define UINT16_MAX (__UINT16_MAX__)
|
2013-12-04 00:04:41 +08:00
|
|
|
#elif defined(__int16_t_defined)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT16_MIN (-32768)
|
|
|
|
#define INT16_MAX (32767)
|
|
|
|
#define UINT16_MAX (65535)
|
2005-03-07 04:51:38 +08:00
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT_LEAST16_MAX__
|
|
|
|
#define INT_LEAST16_MIN (-__INT_LEAST16_MAX__ - 1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_LEAST16_MAX (__INT_LEAST16_MAX__)
|
|
|
|
#define UINT_LEAST16_MAX (__UINT_LEAST16_MAX__)
|
2013-12-04 00:04:41 +08:00
|
|
|
#elif defined(__int_least16_t_defined)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_LEAST16_MIN (-32768)
|
|
|
|
#define INT_LEAST16_MAX (32767)
|
|
|
|
#define UINT_LEAST16_MAX (65535)
|
2005-03-07 04:51:38 +08:00
|
|
|
#else
|
|
|
|
#error required type int_least16_t missing
|
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT32_MAX__
|
|
|
|
#define INT32_MIN (-__INT32_MAX__ - 1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT32_MAX (__INT32_MAX__)
|
|
|
|
#define UINT32_MAX (__UINT32_MAX__)
|
2013-12-04 00:04:41 +08:00
|
|
|
#elif defined(__int32_t_defined)
|
2015-04-29 19:06:45 +08:00
|
|
|
#if defined (_INT32_EQ_LONG)
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#define INT32_MIN (-2147483647L-1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT32_MAX (2147483647L)
|
|
|
|
#define UINT32_MAX (4294967295UL)
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#else
|
2005-09-21 05:21:51 +08:00
|
|
|
#define INT32_MIN (-2147483647-1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT32_MAX (2147483647)
|
|
|
|
#define UINT32_MAX (4294967295U)
|
2005-03-07 04:51:38 +08:00
|
|
|
#endif
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#endif
|
2005-03-07 04:51:38 +08:00
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT_LEAST32_MAX__
|
|
|
|
#define INT_LEAST32_MIN (-__INT_LEAST32_MAX__ - 1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_LEAST32_MAX (__INT_LEAST32_MAX__)
|
|
|
|
#define UINT_LEAST32_MAX (__UINT_LEAST32_MAX__)
|
2013-12-04 00:04:41 +08:00
|
|
|
#elif defined(__int_least32_t_defined)
|
2015-04-29 19:06:45 +08:00
|
|
|
#if defined (_INT32_EQ_LONG)
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#define INT_LEAST32_MIN (-2147483647L-1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_LEAST32_MAX (2147483647L)
|
|
|
|
#define UINT_LEAST32_MAX (4294967295UL)
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#else
|
2005-09-21 05:21:51 +08:00
|
|
|
#define INT_LEAST32_MIN (-2147483647-1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_LEAST32_MAX (2147483647)
|
|
|
|
#define UINT_LEAST32_MAX (4294967295U)
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#endif
|
2005-03-07 04:51:38 +08:00
|
|
|
#else
|
|
|
|
#error required type int_least32_t missing
|
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT64_MAX__
|
|
|
|
#define INT64_MIN (-__INT64_MAX__ - 1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT64_MAX (__INT64_MAX__)
|
|
|
|
#define UINT64_MAX (__UINT64_MAX__)
|
2013-12-04 00:04:41 +08:00
|
|
|
#elif defined(__int64_t_defined)
|
2005-11-02 06:26:21 +08:00
|
|
|
#if __have_long64
|
2005-09-21 05:21:51 +08:00
|
|
|
#define INT64_MIN (-9223372036854775807L-1L)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT64_MAX (9223372036854775807L)
|
|
|
|
#define UINT64_MAX (18446744073709551615U)
|
2005-10-05 05:02:59 +08:00
|
|
|
#elif __have_longlong64
|
2005-09-21 05:21:51 +08:00
|
|
|
#define INT64_MIN (-9223372036854775807LL-1LL)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT64_MAX (9223372036854775807LL)
|
|
|
|
#define UINT64_MAX (18446744073709551615ULL)
|
2005-09-21 05:21:51 +08:00
|
|
|
#endif
|
2005-03-07 04:51:38 +08:00
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT_LEAST64_MAX__
|
|
|
|
#define INT_LEAST64_MIN (-__INT_LEAST64_MAX__ - 1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_LEAST64_MAX (__INT_LEAST64_MAX__)
|
|
|
|
#define UINT_LEAST64_MAX (__UINT_LEAST64_MAX__)
|
2013-12-04 00:04:41 +08:00
|
|
|
#elif defined(__int_least64_t_defined)
|
2005-11-02 06:26:21 +08:00
|
|
|
#if __have_long64
|
2005-09-21 05:21:51 +08:00
|
|
|
#define INT_LEAST64_MIN (-9223372036854775807L-1L)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_LEAST64_MAX (9223372036854775807L)
|
|
|
|
#define UINT_LEAST64_MAX (18446744073709551615U)
|
2005-10-05 05:02:59 +08:00
|
|
|
#elif __have_longlong64
|
2005-09-21 05:21:51 +08:00
|
|
|
#define INT_LEAST64_MIN (-9223372036854775807LL-1LL)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_LEAST64_MAX (9223372036854775807LL)
|
|
|
|
#define UINT_LEAST64_MAX (18446744073709551615ULL)
|
2005-09-21 05:21:51 +08:00
|
|
|
#endif
|
2005-03-07 04:51:38 +08:00
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT_FAST8_MAX__
|
|
|
|
#define INT_FAST8_MIN (-__INT_FAST8_MAX__ - 1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_FAST8_MAX (__INT_FAST8_MAX__)
|
|
|
|
#define UINT_FAST8_MAX (__UINT_FAST8_MAX__)
|
2013-12-04 00:04:41 +08:00
|
|
|
#elif defined(__int_fast8_t_defined)
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#if __STDINT_EXP(INT_MAX) >= 0x7f
|
|
|
|
#define INT_FAST8_MIN (-__STDINT_EXP(INT_MAX)-1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_FAST8_MAX (__STDINT_EXP(INT_MAX))
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#define UINT_FAST8_MAX (__STDINT_EXP(INT_MAX)*2U+1U)
|
|
|
|
#else
|
|
|
|
#define INT_FAST8_MIN INT_LEAST8_MIN
|
|
|
|
#define INT_FAST8_MAX INT_LEAST8_MAX
|
|
|
|
#define UINT_FAST8_MAX UINT_LEAST8_MAX
|
|
|
|
#endif
|
2005-10-07 03:46:21 +08:00
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT_FAST16_MAX__
|
|
|
|
#define INT_FAST16_MIN (-__INT_FAST16_MAX__ - 1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_FAST16_MAX (__INT_FAST16_MAX__)
|
|
|
|
#define UINT_FAST16_MAX (__UINT_FAST16_MAX__)
|
2013-12-04 00:04:41 +08:00
|
|
|
#elif defined(__int_fast16_t_defined)
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#if __STDINT_EXP(INT_MAX) >= 0x7fff
|
|
|
|
#define INT_FAST16_MIN (-__STDINT_EXP(INT_MAX)-1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_FAST16_MAX (__STDINT_EXP(INT_MAX))
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#define UINT_FAST16_MAX (__STDINT_EXP(INT_MAX)*2U+1U)
|
|
|
|
#else
|
|
|
|
#define INT_FAST16_MIN INT_LEAST16_MIN
|
|
|
|
#define INT_FAST16_MAX INT_LEAST16_MAX
|
|
|
|
#define UINT_FAST16_MAX UINT_LEAST16_MAX
|
|
|
|
#endif
|
2005-10-07 03:46:21 +08:00
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT_FAST32_MAX__
|
|
|
|
#define INT_FAST32_MIN (-__INT_FAST32_MAX__ - 1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_FAST32_MAX (__INT_FAST32_MAX__)
|
|
|
|
#define UINT_FAST32_MAX (__UINT_FAST32_MAX__)
|
2013-12-04 00:04:41 +08:00
|
|
|
#elif defined(__int_fast32_t_defined)
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#if __STDINT_EXP(INT_MAX) >= 0x7fffffff
|
|
|
|
#define INT_FAST32_MIN (-__STDINT_EXP(INT_MAX)-1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_FAST32_MAX (__STDINT_EXP(INT_MAX))
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#define UINT_FAST32_MAX (__STDINT_EXP(INT_MAX)*2U+1U)
|
|
|
|
#else
|
|
|
|
#define INT_FAST32_MIN INT_LEAST32_MIN
|
|
|
|
#define INT_FAST32_MAX INT_LEAST32_MAX
|
|
|
|
#define UINT_FAST32_MAX UINT_LEAST32_MAX
|
|
|
|
#endif
|
2005-10-07 03:46:21 +08:00
|
|
|
#endif
|
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT_FAST64_MAX__
|
|
|
|
#define INT_FAST64_MIN (-__INT_FAST64_MAX__ - 1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_FAST64_MAX (__INT_FAST64_MAX__)
|
|
|
|
#define UINT_FAST64_MAX (__UINT_FAST64_MAX__)
|
2013-12-04 00:04:41 +08:00
|
|
|
#elif defined(__int_fast64_t_defined)
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#if __STDINT_EXP(INT_MAX) > 0x7fffffff
|
|
|
|
#define INT_FAST64_MIN (-__STDINT_EXP(INT_MAX)-1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INT_FAST64_MAX (__STDINT_EXP(INT_MAX))
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#define UINT_FAST64_MAX (__STDINT_EXP(INT_MAX)*2U+1U)
|
|
|
|
#else
|
|
|
|
#define INT_FAST64_MIN INT_LEAST64_MIN
|
|
|
|
#define INT_FAST64_MAX INT_LEAST64_MAX
|
|
|
|
#define UINT_FAST64_MAX UINT_LEAST64_MAX
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __INTMAX_MAX__
|
2015-04-02 02:40:43 +08:00
|
|
|
#define INTMAX_MAX (__INTMAX_MAX__)
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#define INTMAX_MIN (-INTMAX_MAX - 1)
|
|
|
|
#elif defined(__INTMAX_TYPE__)
|
|
|
|
/* All relevant GCC versions prefer long to long long for intmax_t. */
|
|
|
|
#define INTMAX_MAX INT64_MAX
|
|
|
|
#define INTMAX_MIN INT64_MIN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __UINTMAX_MAX__
|
2015-04-02 02:40:43 +08:00
|
|
|
#define UINTMAX_MAX (__UINTMAX_MAX__)
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#elif defined(__UINTMAX_TYPE__)
|
|
|
|
/* All relevant GCC versions prefer long to long long for intmax_t. */
|
|
|
|
#define UINTMAX_MAX UINT64_MAX
|
2005-10-07 03:46:21 +08:00
|
|
|
#endif
|
|
|
|
|
2005-03-07 04:51:38 +08:00
|
|
|
/* This must match size_t in stddef.h, currently long unsigned int */
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#ifdef __SIZE_MAX__
|
2015-04-02 02:40:43 +08:00
|
|
|
#define SIZE_MAX (__SIZE_MAX__)
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#else
|
2008-05-02 22:52:56 +08:00
|
|
|
#define SIZE_MAX (__STDINT_EXP(LONG_MAX) * 2UL + 1)
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#endif
|
2005-03-07 04:51:38 +08:00
|
|
|
|
|
|
|
/* This must match sig_atomic_t in <signal.h> (currently int) */
|
2005-09-21 05:21:51 +08:00
|
|
|
#define SIG_ATOMIC_MIN (-__STDINT_EXP(INT_MAX) - 1)
|
2015-04-02 02:40:43 +08:00
|
|
|
#define SIG_ATOMIC_MAX (__STDINT_EXP(INT_MAX))
|
2005-03-07 04:51:38 +08:00
|
|
|
|
|
|
|
/* This must match ptrdiff_t in <stddef.h> (currently long int) */
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#ifdef __PTRDIFF_MAX__
|
2015-04-02 02:40:43 +08:00
|
|
|
#define PTRDIFF_MAX (__PTRDIFF_MAX__)
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#else
|
2015-04-02 02:40:43 +08:00
|
|
|
#define PTRDIFF_MAX (__STDINT_EXP(LONG_MAX))
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#endif
|
|
|
|
#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)
|
|
|
|
|
2014-05-13 01:02:11 +08:00
|
|
|
/* This must match definition in <wchar.h> */
|
|
|
|
#ifndef WCHAR_MIN
|
|
|
|
#ifdef __WCHAR_MIN__
|
2015-04-02 02:40:43 +08:00
|
|
|
#define WCHAR_MIN (__WCHAR_MIN__)
|
2014-05-13 01:02:11 +08:00
|
|
|
#elif defined(__WCHAR_UNSIGNED__) || (L'\0' - 1 > 0)
|
|
|
|
#define WCHAR_MIN (0 + L'\0')
|
|
|
|
#else
|
|
|
|
#define WCHAR_MIN (-0x7fffffff - 1 + L'\0')
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* This must match definition in <wchar.h> */
|
|
|
|
#ifndef WCHAR_MAX
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#ifdef __WCHAR_MAX__
|
2015-04-02 02:40:43 +08:00
|
|
|
#define WCHAR_MAX (__WCHAR_MAX__)
|
2014-05-13 01:02:11 +08:00
|
|
|
#elif defined(__WCHAR_UNSIGNED__) || (L'\0' - 1 > 0)
|
|
|
|
#define WCHAR_MAX (0xffffffffu + L'\0')
|
|
|
|
#else
|
|
|
|
#define WCHAR_MAX (0x7fffffff + L'\0')
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* wint_t is unsigned int on almost all GCC targets. */
|
|
|
|
#ifdef __WINT_MAX__
|
2015-04-02 02:40:43 +08:00
|
|
|
#define WINT_MAX (__WINT_MAX__)
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#else
|
|
|
|
#define WINT_MAX (__STDINT_EXP(INT_MAX) * 2U + 1U)
|
|
|
|
#endif
|
|
|
|
#ifdef __WINT_MIN__
|
2015-04-02 02:40:43 +08:00
|
|
|
#define WINT_MIN (__WINT_MIN__)
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#else
|
2015-04-02 02:40:43 +08:00
|
|
|
#define WINT_MIN (0U)
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#endif
|
2005-03-07 04:51:38 +08:00
|
|
|
|
|
|
|
/** Macros for minimum-width integer constant expressions */
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT8_C
|
|
|
|
#define INT8_C(x) __INT8_C(x)
|
|
|
|
#define UINT8_C(x) __UINT8_C(x)
|
|
|
|
#else
|
2005-03-07 04:51:38 +08:00
|
|
|
#define INT8_C(x) x
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#if __STDINT_EXP(INT_MAX) > 0x7f
|
|
|
|
#define UINT8_C(x) x
|
|
|
|
#else
|
2005-03-07 04:51:38 +08:00
|
|
|
#define UINT8_C(x) x##U
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#endif
|
2013-12-04 00:04:41 +08:00
|
|
|
#endif
|
2005-03-07 04:51:38 +08:00
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT16_C
|
|
|
|
#define INT16_C(x) __INT16_C(x)
|
|
|
|
#define UINT16_C(x) __UINT16_C(x)
|
|
|
|
#else
|
2005-03-07 04:51:38 +08:00
|
|
|
#define INT16_C(x) x
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#if __STDINT_EXP(INT_MAX) > 0x7fff
|
|
|
|
#define UINT16_C(x) x
|
|
|
|
#else
|
2005-03-07 04:51:38 +08:00
|
|
|
#define UINT16_C(x) x##U
|
2008-12-10 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-11 05:27:58 +08:00
|
|
|
#endif
|
2013-12-04 00:04:41 +08:00
|
|
|
#endif
|
2005-03-07 04:51:38 +08:00
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT32_C
|
|
|
|
#define INT32_C(x) __INT32_C(x)
|
|
|
|
#define UINT32_C(x) __UINT32_C(x)
|
|
|
|
#else
|
2015-04-29 19:06:45 +08:00
|
|
|
#if defined (_INT32_EQ_LONG)
|
2005-03-07 04:51:38 +08:00
|
|
|
#define INT32_C(x) x##L
|
|
|
|
#define UINT32_C(x) x##UL
|
|
|
|
#else
|
|
|
|
#define INT32_C(x) x
|
|
|
|
#define UINT32_C(x) x##U
|
|
|
|
#endif
|
2013-12-04 00:04:41 +08:00
|
|
|
#endif
|
2005-03-07 04:51:38 +08:00
|
|
|
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INT64_C
|
|
|
|
#define INT64_C(x) __INT64_C(x)
|
|
|
|
#define UINT64_C(x) __UINT64_C(x)
|
|
|
|
#else
|
2005-03-07 04:51:38 +08:00
|
|
|
#if __int64_t_defined
|
2009-01-19 Neal H. Walfield <neal@gnu.org>
* libc/include/stdint.h (INT64_C, UINT64_C, INTMAX_C, UINTMAX_C)
[__have_long64 && __have_longlong64]: Use L and UL, not LL and ULL.
* libc/include/inttypes.h (__PRI64, __SCN64, __PRIMAX, __SCNMAX,
__PRIPTR, __SCNPTR) [__have_long64 && __have_longlong64]: Use l,
not ll.
2009-01-20 06:02:06 +08:00
|
|
|
#if __have_long64
|
2005-03-07 04:51:38 +08:00
|
|
|
#define INT64_C(x) x##L
|
|
|
|
#define UINT64_C(x) x##UL
|
2009-01-19 Neal H. Walfield <neal@gnu.org>
* libc/include/stdint.h (INT64_C, UINT64_C, INTMAX_C, UINTMAX_C)
[__have_long64 && __have_longlong64]: Use L and UL, not LL and ULL.
* libc/include/inttypes.h (__PRI64, __SCN64, __PRIMAX, __SCNMAX,
__PRIPTR, __SCNPTR) [__have_long64 && __have_longlong64]: Use l,
not ll.
2009-01-20 06:02:06 +08:00
|
|
|
#else
|
|
|
|
#define INT64_C(x) x##LL
|
|
|
|
#define UINT64_C(x) x##ULL
|
2005-03-07 04:51:38 +08:00
|
|
|
#endif
|
|
|
|
#endif
|
2013-12-04 00:04:41 +08:00
|
|
|
#endif
|
2005-03-07 04:51:38 +08:00
|
|
|
|
|
|
|
/** Macros for greatest-width integer constant expression */
|
2013-12-04 00:04:41 +08:00
|
|
|
#ifdef __INTMAX_C
|
|
|
|
#define INTMAX_C(x) __INTMAX_C(x)
|
|
|
|
#define UINTMAX_C(x) __UINTMAX_C(x)
|
|
|
|
#else
|
2009-01-19 Neal H. Walfield <neal@gnu.org>
* libc/include/stdint.h (INT64_C, UINT64_C, INTMAX_C, UINTMAX_C)
[__have_long64 && __have_longlong64]: Use L and UL, not LL and ULL.
* libc/include/inttypes.h (__PRI64, __SCN64, __PRIMAX, __SCNMAX,
__PRIPTR, __SCNPTR) [__have_long64 && __have_longlong64]: Use l,
not ll.
2009-01-20 06:02:06 +08:00
|
|
|
#if __have_long64
|
2005-03-07 04:51:38 +08:00
|
|
|
#define INTMAX_C(x) x##L
|
|
|
|
#define UINTMAX_C(x) x##UL
|
2009-01-19 Neal H. Walfield <neal@gnu.org>
* libc/include/stdint.h (INT64_C, UINT64_C, INTMAX_C, UINTMAX_C)
[__have_long64 && __have_longlong64]: Use L and UL, not LL and ULL.
* libc/include/inttypes.h (__PRI64, __SCN64, __PRIMAX, __SCNMAX,
__PRIPTR, __SCNPTR) [__have_long64 && __have_longlong64]: Use l,
not ll.
2009-01-20 06:02:06 +08:00
|
|
|
#else
|
|
|
|
#define INTMAX_C(x) x##LL
|
|
|
|
#define UINTMAX_C(x) x##ULL
|
2005-03-07 04:51:38 +08:00
|
|
|
#endif
|
2013-12-04 00:04:41 +08:00
|
|
|
#endif
|
2005-03-07 04:51:38 +08:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _STDINT_H */
|