chromium/third_party/llvm-build/Release+Asserts/lib/clang/20/include/stdint.h

/*===---- stdint.h - Standard header for sized integer types --------------===*\
 *
 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 * See https://llvm.org/LICENSE.txt for license information.
 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 *
\*===----------------------------------------------------------------------===*/

#ifndef __CLANG_STDINT_H
// AIX system headers need stdint.h to be re-enterable while _STD_TYPES_T
// is defined until an inclusion of it without _STD_TYPES_T occurs, in which
// case the header guard macro is defined.
#if !defined(_AIX) || !defined(_STD_TYPES_T) || !defined(__STDC_HOSTED__)
#define __CLANG_STDINT_H
#endif

#if defined(__MVS__) && __has_include_next(<stdint.h>)
#include_next <stdint.h>
#else

/* If we're hosted, fall back to the system's stdint.h, which might have
 * additional definitions.
 */
#if __STDC_HOSTED__ && __has_include_next(<stdint.h>)

// C99 7.18.3 Limits of other integer types
//
//  Footnote 219, 220: C++ implementations should define these macros only when
//  __STDC_LIMIT_MACROS is defined before <stdint.h> is included.
//
//  Footnote 222: C++ implementations should define these macros only when
//  __STDC_CONSTANT_MACROS is defined before <stdint.h> is included.
//
// C++11 [cstdint.syn]p2:
//
//  The macros defined by <cstdint> are provided unconditionally. In particular,
//  the symbols __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS (mentioned in
//  footnotes 219, 220, and 222 in the C standard) play no role in C++.
//
// C11 removed the problematic footnotes.
//
// Work around this inconsistency by always defining those macros in C++ mode,
// so that a C library implementation which follows the C99 standard can be
// used in C++.
# ifdef __cplusplus
#  if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS_DEFINED_BY_CLANG
#  endif
#  if !defined(__STDC_CONSTANT_MACROS)
#define __STDC_CONSTANT_MACROS
#define __STDC_CONSTANT_MACROS_DEFINED_BY_CLANG
#  endif
# endif

# include_next <stdint.h>

# ifdef __STDC_LIMIT_MACROS_DEFINED_BY_CLANG
#  undef __STDC_LIMIT_MACROS
#  undef __STDC_LIMIT_MACROS_DEFINED_BY_CLANG
# endif
# ifdef __STDC_CONSTANT_MACROS_DEFINED_BY_CLANG
#  undef __STDC_CONSTANT_MACROS
#  undef __STDC_CONSTANT_MACROS_DEFINED_BY_CLANG
# endif

#else

/* C99 7.18.1.1 Exact-width integer types.
 * C99 7.18.1.2 Minimum-width integer types.
 * C99 7.18.1.3 Fastest minimum-width integer types.
 *
 * The standard requires that exact-width type be defined for 8-, 16-, 32-, and
 * 64-bit types if they are implemented. Other exact width types are optional.
 * This implementation defines an exact-width types for every integer width
 * that is represented in the standard integer types.
 *
 * The standard also requires minimum-width types be defined for 8-, 16-, 32-,
 * and 64-bit widths regardless of whether there are corresponding exact-width
 * types.
 *
 * To accommodate targets that are missing types that are exactly 8, 16, 32, or
 * 64 bits wide, this implementation takes an approach of cascading
 * redefinitions, redefining __int_leastN_t to successively smaller exact-width
 * types. It is therefore important that the types are defined in order of
 * descending widths.
 *
 * We currently assume that the minimum-width types and the fastest
 * minimum-width types are the same. This is allowed by the standard, but is
 * suboptimal.
 *
 * In violation of the standard, some targets do not implement a type that is
 * wide enough to represent all of the required widths (8-, 16-, 32-, 64-bit).
 * To accommodate these targets, a required minimum-width type is only
 * defined if there exists an exact-width type of equal or greater width.
 */

#ifdef __INT64_TYPE__
# ifndef __int8_t_defined /* glibc sys/types.h also defines int64_t*/
typedef __INT64_TYPE__ int64_t;
# endif /* __int8_t_defined */
typedef __UINT64_TYPE__ uint64_t;
# undef __int_least64_t
#define __int_least64_t
# undef __uint_least64_t
#define __uint_least64_t
# undef __int_least32_t
#define __int_least32_t
# undef __uint_least32_t
#define __uint_least32_t
# undef __int_least16_t
#define __int_least16_t
# undef __uint_least16_t
#define __uint_least16_t
# undef __int_least8_t
#define __int_least8_t
# undef __uint_least8_t
#define __uint_least8_t
#endif /* __INT64_TYPE__ */

#ifdef __int_least64_t
typedef __int_least64_t int_least64_t;
typedef __uint_least64_t uint_least64_t;
typedef __int_least64_t int_fast64_t;
typedef __uint_least64_t uint_fast64_t;
#endif /* __int_least64_t */

#ifdef __INT56_TYPE__
typedef __INT56_TYPE__ int56_t;
typedef __UINT56_TYPE__ uint56_t;
typedef int56_t int_least56_t;
typedef uint56_t uint_least56_t;
typedef int56_t int_fast56_t;
typedef uint56_t uint_fast56_t;
# undef __int_least32_t
#define __int_least32_t
# undef __uint_least32_t
#define __uint_least32_t
# undef __int_least16_t
#define __int_least16_t
# undef __uint_least16_t
#define __uint_least16_t
# undef __int_least8_t
#define __int_least8_t
# undef __uint_least8_t
#define __uint_least8_t
#endif /* __INT56_TYPE__ */


#ifdef __INT48_TYPE__
typedef __INT48_TYPE__ int48_t;
typedef __UINT48_TYPE__ uint48_t;
typedef int48_t int_least48_t;
typedef uint48_t uint_least48_t;
typedef int48_t int_fast48_t;
typedef uint48_t uint_fast48_t;
# undef __int_least32_t
#define __int_least32_t
# undef __uint_least32_t
#define __uint_least32_t
# undef __int_least16_t
#define __int_least16_t
# undef __uint_least16_t
#define __uint_least16_t
# undef __int_least8_t
#define __int_least8_t
# undef __uint_least8_t
#define __uint_least8_t
#endif /* __INT48_TYPE__ */


#ifdef __INT40_TYPE__
typedef __INT40_TYPE__ int40_t;
typedef __UINT40_TYPE__ uint40_t;
typedef int40_t int_least40_t;
typedef uint40_t uint_least40_t;
typedef int40_t int_fast40_t;
typedef uint40_t uint_fast40_t;
# undef __int_least32_t
#define __int_least32_t
# undef __uint_least32_t
#define __uint_least32_t
# undef __int_least16_t
#define __int_least16_t
# undef __uint_least16_t
#define __uint_least16_t
# undef __int_least8_t
#define __int_least8_t
# undef __uint_least8_t
#define __uint_least8_t
#endif /* __INT40_TYPE__ */


#ifdef __INT32_TYPE__

# ifndef __int8_t_defined /* glibc sys/types.h also defines int32_t*/
typedef __INT32_TYPE__ int32_t;
# endif /* __int8_t_defined */

# ifndef __uint32_t_defined  /* more glibc compatibility */
#define __uint32_t_defined
typedef __UINT32_TYPE__ uint32_t;
# endif /* __uint32_t_defined */

# undef __int_least32_t
#define __int_least32_t
# undef __uint_least32_t
#define __uint_least32_t
# undef __int_least16_t
#define __int_least16_t
# undef __uint_least16_t
#define __uint_least16_t
# undef __int_least8_t
#define __int_least8_t
# undef __uint_least8_t
#define __uint_least8_t
#endif /* __INT32_TYPE__ */

#ifdef __int_least32_t
typedef __int_least32_t int_least32_t;
typedef __uint_least32_t uint_least32_t;
typedef __int_least32_t int_fast32_t;
typedef __uint_least32_t uint_fast32_t;
#endif /* __int_least32_t */

#ifdef __INT24_TYPE__
typedef __INT24_TYPE__ int24_t;
typedef __UINT24_TYPE__ uint24_t;
typedef int24_t int_least24_t;
typedef uint24_t uint_least24_t;
typedef int24_t int_fast24_t;
typedef uint24_t uint_fast24_t;
# undef __int_least16_t
#define __int_least16_t
# undef __uint_least16_t
#define __uint_least16_t
# undef __int_least8_t
#define __int_least8_t
# undef __uint_least8_t
#define __uint_least8_t
#endif /* __INT24_TYPE__ */

#ifdef __INT16_TYPE__
#ifndef __int8_t_defined /* glibc sys/types.h also defines int16_t*/
typedef __INT16_TYPE__ int16_t;
#endif /* __int8_t_defined */
typedef __UINT16_TYPE__ uint16_t;
# undef __int_least16_t
#define __int_least16_t
# undef __uint_least16_t
#define __uint_least16_t
# undef __int_least8_t
#define __int_least8_t
# undef __uint_least8_t
#define __uint_least8_t
#endif /* __INT16_TYPE__ */

#ifdef __int_least16_t
typedef __int_least16_t int_least16_t;
typedef __uint_least16_t uint_least16_t;
typedef __int_least16_t int_fast16_t;
typedef __uint_least16_t uint_fast16_t;
#endif /* __int_least16_t */


#ifdef __INT8_TYPE__
#ifndef __int8_t_defined  /* glibc sys/types.h also defines int8_t*/
typedef __INT8_TYPE__ int8_t;
#endif /* __int8_t_defined */
typedef __UINT8_TYPE__ uint8_t;
# undef __int_least8_t
#define __int_least8_t
# undef __uint_least8_t
#define __uint_least8_t
#endif /* __INT8_TYPE__ */

#ifdef __int_least8_t
typedef __int_least8_t int_least8_t;
typedef __uint_least8_t uint_least8_t;
typedef __int_least8_t int_fast8_t;
typedef __uint_least8_t uint_fast8_t;
#endif /* __int_least8_t */

/* prevent glibc sys/types.h from defining conflicting types */
#ifndef __int8_t_defined
#define __int8_t_defined
#endif /* __int8_t_defined */

/* C99 7.18.1.4 Integer types capable of holding object pointers.
 */
#define __stdint_join3

#ifndef _INTPTR_T
#ifndef __intptr_t_defined
typedef __INTPTR_TYPE__ intptr_t;
#define __intptr_t_defined
#define _INTPTR_T
#endif
#endif

#ifndef _UINTPTR_T
typedef __UINTPTR_TYPE__ uintptr_t;
#define _UINTPTR_T
#endif

/* C99 7.18.1.5 Greatest-width integer types.
 */
typedef __INTMAX_TYPE__  intmax_t;
typedef __UINTMAX_TYPE__ uintmax_t;

/* C99 7.18.4 Macros for minimum-width integer constants.
 *
 * The standard requires that integer constant macros be defined for all the
 * minimum-width types defined above. As 8-, 16-, 32-, and 64-bit minimum-width
 * types are required, the corresponding integer constant macros are defined
 * here. This implementation also defines minimum-width types for every other
 * integer width that the target implements, so corresponding macros are
 * defined below, too.
 *
 * These macros are defined using the same successive-shrinking approach as
 * the type definitions above. It is likewise important that macros are defined
 * in order of decending width.
 *
 * Note that C++ should not check __STDC_CONSTANT_MACROS here, contrary to the
 * claims of the C standard (see C++ 18.3.1p2, [cstdint.syn]).
 */

#define __int_c_join
#define __int_c
#define __uint_c


#ifdef __INT64_TYPE__
# undef __int64_c_suffix
# undef __int32_c_suffix
# undef __int16_c_suffix
# undef  __int8_c_suffix
# ifdef __INT64_C_SUFFIX__
#define __int64_c_suffix
#define __int32_c_suffix
#define __int16_c_suffix
#define __int8_c_suffix
# endif /* __INT64_C_SUFFIX__ */
#endif /* __INT64_TYPE__ */

#ifdef __int_least64_t
# ifdef __int64_c_suffix
#define INT64_C
#define UINT64_C
# else
#define INT64_C
#define UINT64_C
# endif /* __int64_c_suffix */
#endif /* __int_least64_t */


#ifdef __INT56_TYPE__
# undef __int32_c_suffix
# undef __int16_c_suffix
# undef  __int8_c_suffix
# ifdef __INT56_C_SUFFIX__
#define INT56_C
#define UINT56_C
#define __int32_c_suffix
#define __int16_c_suffix
#define __int8_c_suffix
# else
#define INT56_C
#define UINT56_C
# endif /* __INT56_C_SUFFIX__ */
#endif /* __INT56_TYPE__ */


#ifdef __INT48_TYPE__
# undef __int32_c_suffix
# undef __int16_c_suffix
# undef  __int8_c_suffix
# ifdef __INT48_C_SUFFIX__
#define INT48_C
#define UINT48_C
#define __int32_c_suffix
#define __int16_c_suffix
#define __int8_c_suffix
# else
#define INT48_C
#define UINT48_C
# endif /* __INT48_C_SUFFIX__ */
#endif /* __INT48_TYPE__ */


#ifdef __INT40_TYPE__
# undef __int32_c_suffix
# undef __int16_c_suffix
# undef  __int8_c_suffix
# ifdef __INT40_C_SUFFIX__
#define INT40_C
#define UINT40_C
#define __int32_c_suffix
#define __int16_c_suffix
#define __int8_c_suffix
# else
#define INT40_C
#define UINT40_C
# endif /* __INT40_C_SUFFIX__ */
#endif /* __INT40_TYPE__ */


#ifdef __INT32_TYPE__
# undef __int32_c_suffix
# undef __int16_c_suffix
# undef  __int8_c_suffix
# ifdef __INT32_C_SUFFIX__
#define __int32_c_suffix
#define __int16_c_suffix
#define __int8_c_suffix
# endif /* __INT32_C_SUFFIX__ */
#endif /* __INT32_TYPE__ */

#ifdef __int_least32_t
# ifdef __int32_c_suffix
#define INT32_C
#define UINT32_C
# else
#define INT32_C
#define UINT32_C
# endif /* __int32_c_suffix */
#endif /* __int_least32_t */


#ifdef __INT24_TYPE__
# undef __int16_c_suffix
# undef  __int8_c_suffix
# ifdef __INT24_C_SUFFIX__
#define INT24_C
#define UINT24_C
#define __int16_c_suffix
#define __int8_c_suffix
# else
#define INT24_C
#define UINT24_C
# endif /* __INT24_C_SUFFIX__ */
#endif /* __INT24_TYPE__ */


#ifdef __INT16_TYPE__
# undef __int16_c_suffix
# undef  __int8_c_suffix
# ifdef __INT16_C_SUFFIX__
#define __int16_c_suffix
#define __int8_c_suffix
# endif /* __INT16_C_SUFFIX__ */
#endif /* __INT16_TYPE__ */

#ifdef __int_least16_t
# ifdef __int16_c_suffix
#define INT16_C
#define UINT16_C
# else
#define INT16_C
#define UINT16_C
# endif /* __int16_c_suffix */
#endif /* __int_least16_t */


#ifdef __INT8_TYPE__
# undef  __int8_c_suffix
# ifdef __INT8_C_SUFFIX__
#define __int8_c_suffix
# endif /* __INT8_C_SUFFIX__ */
#endif /* __INT8_TYPE__ */

#ifdef __int_least8_t
# ifdef __int8_c_suffix
#define INT8_C
#define UINT8_C
# else
#define INT8_C
#define UINT8_C
# endif /* __int8_c_suffix */
#endif /* __int_least8_t */


/* C99 7.18.2.1 Limits of exact-width integer types.
 * C99 7.18.2.2 Limits of minimum-width integer types.
 * C99 7.18.2.3 Limits of fastest minimum-width integer types.
 *
 * The presence of limit macros are completely optional in C99.  This
 * implementation defines limits for all of the types (exact- and
 * minimum-width) that it defines above, using the limits of the minimum-width
 * type for any types that do not have exact-width representations.
 *
 * As in the type definitions, this section takes an approach of
 * successive-shrinking to determine which limits to use for the standard (8,
 * 16, 32, 64) bit widths when they don't have exact representations. It is
 * therefore important that the definitions be kept in order of decending
 * widths.
 *
 * Note that C++ should not check __STDC_LIMIT_MACROS here, contrary to the
 * claims of the C standard (see C++ 18.3.1p2, [cstdint.syn]).
 */

#ifdef __INT64_TYPE__
#define INT64_MAX
#define INT64_MIN
#define UINT64_MAX

#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
#define UINT64_WIDTH
#define INT64_WIDTH

#define __UINT_LEAST64_WIDTH
# undef __UINT_LEAST32_WIDTH
#define __UINT_LEAST32_WIDTH
# undef __UINT_LEAST16_WIDTH
#define __UINT_LEAST16_WIDTH
# undef __UINT_LEAST8_MAX
#define __UINT_LEAST8_MAX
#endif /* __STDC_VERSION__ */

#define __INT_LEAST64_MIN
#define __INT_LEAST64_MAX
#define __UINT_LEAST64_MAX
# undef __INT_LEAST32_MIN
#define __INT_LEAST32_MIN
# undef __INT_LEAST32_MAX
#define __INT_LEAST32_MAX
# undef __UINT_LEAST32_MAX
#define __UINT_LEAST32_MAX
# undef __INT_LEAST16_MIN
#define __INT_LEAST16_MIN
# undef __INT_LEAST16_MAX
#define __INT_LEAST16_MAX
# undef __UINT_LEAST16_MAX
#define __UINT_LEAST16_MAX
# undef __INT_LEAST8_MIN
#define __INT_LEAST8_MIN
# undef __INT_LEAST8_MAX
#define __INT_LEAST8_MAX
# undef __UINT_LEAST8_MAX
#define __UINT_LEAST8_MAX
#endif /* __INT64_TYPE__ */

#ifdef __INT_LEAST64_MIN
#define INT_LEAST64_MIN
#define INT_LEAST64_MAX
#define UINT_LEAST64_MAX
#define INT_FAST64_MIN
#define INT_FAST64_MAX
#define UINT_FAST64_MAX

#if defined(__STDC_VERSION__) &&  __STDC_VERSION__ >= 202311L
#define UINT_LEAST64_WIDTH
#define INT_LEAST64_WIDTH
#define UINT_FAST64_WIDTH
#define INT_FAST64_WIDTH
#endif /* __STDC_VERSION__ */
#endif /* __INT_LEAST64_MIN */


#ifdef __INT56_TYPE__
#define INT56_MAX
#define INT56_MIN
#define UINT56_MAX
#define INT_LEAST56_MIN
#define INT_LEAST56_MAX
#define UINT_LEAST56_MAX
#define INT_FAST56_MIN
#define INT_FAST56_MAX
#define UINT_FAST56_MAX

# undef __INT_LEAST32_MIN
#define __INT_LEAST32_MIN
# undef __INT_LEAST32_MAX
#define __INT_LEAST32_MAX
# undef __UINT_LEAST32_MAX
#define __UINT_LEAST32_MAX
# undef __INT_LEAST16_MIN
#define __INT_LEAST16_MIN
# undef __INT_LEAST16_MAX
#define __INT_LEAST16_MAX
# undef __UINT_LEAST16_MAX
#define __UINT_LEAST16_MAX
# undef __INT_LEAST8_MIN
#define __INT_LEAST8_MIN
# undef __INT_LEAST8_MAX
#define __INT_LEAST8_MAX
# undef __UINT_LEAST8_MAX
#define __UINT_LEAST8_MAX

#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
#define UINT56_WIDTH
#define INT56_WIDTH
#define UINT_LEAST56_WIDTH
#define INT_LEAST56_WIDTH
#define UINT_FAST56_WIDTH
#define INT_FAST56_WIDTH
# undef __UINT_LEAST32_WIDTH
#define __UINT_LEAST32_WIDTH
# undef __UINT_LEAST16_WIDTH
#define __UINT_LEAST16_WIDTH
# undef __UINT_LEAST8_WIDTH
#define __UINT_LEAST8_WIDTH
#endif /* __STDC_VERSION__ */
#endif /* __INT56_TYPE__ */


#ifdef __INT48_TYPE__
#define INT48_MAX
#define INT48_MIN
#define UINT48_MAX
#define INT_LEAST48_MIN
#define INT_LEAST48_MAX
#define UINT_LEAST48_MAX
#define INT_FAST48_MIN
#define INT_FAST48_MAX
#define UINT_FAST48_MAX

# undef __INT_LEAST32_MIN
#define __INT_LEAST32_MIN
# undef __INT_LEAST32_MAX
#define __INT_LEAST32_MAX
# undef __UINT_LEAST32_MAX
#define __UINT_LEAST32_MAX
# undef __INT_LEAST16_MIN
#define __INT_LEAST16_MIN
# undef __INT_LEAST16_MAX
#define __INT_LEAST16_MAX
# undef __UINT_LEAST16_MAX
#define __UINT_LEAST16_MAX
# undef __INT_LEAST8_MIN
#define __INT_LEAST8_MIN
# undef __INT_LEAST8_MAX
#define __INT_LEAST8_MAX
# undef __UINT_LEAST8_MAX
#define __UINT_LEAST8_MAX

#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
#define UINT48_WIDTH
#define INT48_WIDTH
#define UINT_LEAST48_WIDTH
#define INT_LEAST48_WIDTH
#define UINT_FAST48_WIDTH
#define INT_FAST48_WIDTH
#undef __UINT_LEAST32_WIDTH
#define __UINT_LEAST32_WIDTH
# undef __UINT_LEAST16_WIDTH
#define __UINT_LEAST16_WIDTH
# undef __UINT_LEAST8_WIDTH
#define __UINT_LEAST8_WIDTH
#endif /* __STDC_VERSION__ */
#endif /* __INT48_TYPE__ */


#ifdef __INT40_TYPE__
#define INT40_MAX
#define INT40_MIN
#define UINT40_MAX
#define INT_LEAST40_MIN
#define INT_LEAST40_MAX
#define UINT_LEAST40_MAX
#define INT_FAST40_MIN
#define INT_FAST40_MAX
#define UINT_FAST40_MAX

# undef __INT_LEAST32_MIN
#define __INT_LEAST32_MIN
# undef __INT_LEAST32_MAX
#define __INT_LEAST32_MAX
# undef __UINT_LEAST32_MAX
#define __UINT_LEAST32_MAX
# undef __INT_LEAST16_MIN
#define __INT_LEAST16_MIN
# undef __INT_LEAST16_MAX
#define __INT_LEAST16_MAX
# undef __UINT_LEAST16_MAX
#define __UINT_LEAST16_MAX
# undef __INT_LEAST8_MIN
#define __INT_LEAST8_MIN
# undef __INT_LEAST8_MAX
#define __INT_LEAST8_MAX
# undef __UINT_LEAST8_MAX
#define __UINT_LEAST8_MAX

#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
#define UINT40_WIDTH
#define INT40_WIDTH
#define UINT_LEAST40_WIDTH
#define INT_LEAST40_WIDTH
#define UINT_FAST40_WIDTH
#define INT_FAST40_WIDTH
# undef __UINT_LEAST32_WIDTH
#define __UINT_LEAST32_WIDTH
# undef __UINT_LEAST16_WIDTH
#define __UINT_LEAST16_WIDTH
# undef __UINT_LEAST8_WIDTH
#define __UINT_LEAST8_WIDTH
#endif /* __STDC_VERSION__ */
#endif /* __INT40_TYPE__ */


#ifdef __INT32_TYPE__
#define INT32_MAX
#define INT32_MIN
#define UINT32_MAX

# undef __INT_LEAST32_MIN
#define __INT_LEAST32_MIN
# undef __INT_LEAST32_MAX
#define __INT_LEAST32_MAX
# undef __UINT_LEAST32_MAX
#define __UINT_LEAST32_MAX
# undef __INT_LEAST16_MIN
#define __INT_LEAST16_MIN
# undef __INT_LEAST16_MAX
#define __INT_LEAST16_MAX
# undef __UINT_LEAST16_MAX
#define __UINT_LEAST16_MAX
# undef __INT_LEAST8_MIN
#define __INT_LEAST8_MIN
# undef __INT_LEAST8_MAX
#define __INT_LEAST8_MAX
# undef __UINT_LEAST8_MAX
#define __UINT_LEAST8_MAX

#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
#define UINT32_WIDTH
#define INT32_WIDTH
# undef __UINT_LEAST32_WIDTH
#define __UINT_LEAST32_WIDTH
# undef __UINT_LEAST16_WIDTH
#define __UINT_LEAST16_WIDTH
# undef __UINT_LEAST8_WIDTH
#define __UINT_LEAST8_WIDTH
#endif /* __STDC_VERSION__ */
#endif /* __INT32_TYPE__ */

#ifdef __INT_LEAST32_MIN
#define INT_LEAST32_MIN
#define INT_LEAST32_MAX
#define UINT_LEAST32_MAX
#define INT_FAST32_MIN
#define INT_FAST32_MAX
#define UINT_FAST32_MAX

#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
#define UINT_LEAST32_WIDTH
#define INT_LEAST32_WIDTH
#define UINT_FAST32_WIDTH
#define INT_FAST32_WIDTH
#endif /* __STDC_VERSION__ */
#endif /* __INT_LEAST32_MIN */


#ifdef __INT24_TYPE__
#define INT24_MAX
#define INT24_MIN
#define UINT24_MAX
#define INT_LEAST24_MIN
#define INT_LEAST24_MAX
#define UINT_LEAST24_MAX
#define INT_FAST24_MIN
#define INT_FAST24_MAX
#define UINT_FAST24_MAX

# undef __INT_LEAST16_MIN
#define __INT_LEAST16_MIN
# undef __INT_LEAST16_MAX
#define __INT_LEAST16_MAX
# undef __UINT_LEAST16_MAX
#define __UINT_LEAST16_MAX
# undef __INT_LEAST8_MIN
#define __INT_LEAST8_MIN
# undef __INT_LEAST8_MAX
#define __INT_LEAST8_MAX
# undef __UINT_LEAST8_MAX
#define __UINT_LEAST8_MAX

#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
#define UINT24_WIDTH
#define INT24_WIDTH
#define UINT_LEAST24_WIDTH
#define INT_LEAST24_WIDTH
#define UINT_FAST24_WIDTH
#define INT_FAST24_WIDTH
# undef __UINT_LEAST16_WIDTH
#define __UINT_LEAST16_WIDTH
# undef __UINT_LEAST8_WIDTH
#define __UINT_LEAST8_WIDTH
#endif /* __STDC_VERSION__ */
#endif /* __INT24_TYPE__ */


#ifdef __INT16_TYPE__
#define INT16_MAX
#define INT16_MIN
#define UINT16_MAX

# undef __INT_LEAST16_MIN
#define __INT_LEAST16_MIN
# undef __INT_LEAST16_MAX
#define __INT_LEAST16_MAX
# undef __UINT_LEAST16_MAX
#define __UINT_LEAST16_MAX
# undef __INT_LEAST8_MIN
#define __INT_LEAST8_MIN
# undef __INT_LEAST8_MAX
#define __INT_LEAST8_MAX
# undef __UINT_LEAST8_MAX
#define __UINT_LEAST8_MAX

#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
#define UINT16_WIDTH
#define INT16_WIDTH
# undef __UINT_LEAST16_WIDTH
#define __UINT_LEAST16_WIDTH
# undef __UINT_LEAST8_WIDTH
#define __UINT_LEAST8_WIDTH
#endif /* __STDC_VERSION__ */
#endif /* __INT16_TYPE__ */

#ifdef __INT_LEAST16_MIN
#define INT_LEAST16_MIN
#define INT_LEAST16_MAX
#define UINT_LEAST16_MAX
#define INT_FAST16_MIN
#define INT_FAST16_MAX
#define UINT_FAST16_MAX

#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
#define UINT_LEAST16_WIDTH
#define INT_LEAST16_WIDTH
#define UINT_FAST16_WIDTH
#define INT_FAST16_WIDTH
#endif /* __STDC_VERSION__ */
#endif /* __INT_LEAST16_MIN */


#ifdef __INT8_TYPE__
#define INT8_MAX
#define INT8_MIN
#define UINT8_MAX

# undef __INT_LEAST8_MIN
#define __INT_LEAST8_MIN
# undef __INT_LEAST8_MAX
#define __INT_LEAST8_MAX
# undef __UINT_LEAST8_MAX
#define __UINT_LEAST8_MAX

#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
#define UINT8_WIDTH
#define INT8_WIDTH
# undef __UINT_LEAST8_WIDTH
#define __UINT_LEAST8_WIDTH
#endif /* __STDC_VERSION__ */
#endif /* __INT8_TYPE__ */

#ifdef __INT_LEAST8_MIN
#define INT_LEAST8_MIN
#define INT_LEAST8_MAX
#define UINT_LEAST8_MAX
#define INT_FAST8_MIN
#define INT_FAST8_MAX
#define UINT_FAST8_MAX

#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
#define UINT_LEAST8_WIDTH
#define INT_LEAST8_WIDTH
#define UINT_FAST8_WIDTH
#define INT_FAST8_WIDTH
#endif /* __STDC_VERSION__ */
#endif /* __INT_LEAST8_MIN */

/* Some utility macros */
#define __INTN_MIN
#define __INTN_MAX
#define __UINTN_MAX
#define __INTN_C
#define __UINTN_C

/* C99 7.18.2.4 Limits of integer types capable of holding object pointers. */
/* C99 7.18.3 Limits of other integer types. */

#define INTPTR_MIN
#define INTPTR_MAX
#define UINTPTR_MAX
#define PTRDIFF_MIN
#define PTRDIFF_MAX
#define SIZE_MAX

/* C23 7.22.2.4 Width of integer types capable of holding object pointers. */
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
/* NB: The C standard requires that these be the same value, but the compiler
   exposes separate internal width macros. */
#define INTPTR_WIDTH
#define UINTPTR_WIDTH
#endif

/* ISO9899:2011 7.20 (C11 Annex K): Define RSIZE_MAX if __STDC_WANT_LIB_EXT1__
 * is enabled. */
#if defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1
#define RSIZE_MAX
#endif

/* C99 7.18.2.5 Limits of greatest-width integer types. */
#define INTMAX_MIN
#define INTMAX_MAX
#define UINTMAX_MAX

/* C23 7.22.2.5 Width of greatest-width integer types. */
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
/* NB: The C standard requires that these be the same value, but the compiler
   exposes separate internal width macros. */
#define INTMAX_WIDTH
#define UINTMAX_WIDTH
#endif

/* C99 7.18.3 Limits of other integer types. */
#define SIG_ATOMIC_MIN
#define SIG_ATOMIC_MAX
#ifdef __WINT_UNSIGNED__
#define WINT_MIN
#define WINT_MAX
#else
#define WINT_MIN
#define WINT_MAX
#endif

#ifndef WCHAR_MAX
#define WCHAR_MAX
#endif
#ifndef WCHAR_MIN
# if __WCHAR_MAX__ == __INTN_MAX(__WCHAR_WIDTH__)
#define WCHAR_MIN
# else
#define WCHAR_MIN
# endif
#endif

/* 7.18.4.2 Macros for greatest-width integer constants. */
#define INTMAX_C
#define UINTMAX_C

/* C23 7.22.3.x Width of other integer types. */
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
#define PTRDIFF_WIDTH
#define SIG_ATOMIC_WIDTH
#define SIZE_WIDTH
#define WCHAR_WIDTH
#define WINT_WIDTH
#endif

#endif /* __STDC_HOSTED__ */
#endif /* __MVS__ */
#endif /* __CLANG_STDINT_H */