/* The ISO C99 standard specifies that in C++ implementations these
macros should only be defined if explicitly requested. */
#if !defined __cplusplus || defined __STDC_LIMIT_MACROS
# if __WORDSIZE == 64
# define __INT64_C(c) c ## L
# define __UINT64_C(c) c ## UL
# else
# define __INT64_C(c) c ## LL
# define __UINT64_C(c) c ## ULL
# endif
/* Limits of integral types. */
/* Minimum of signed integral types. */
# define INT8_MIN (-128)
# define INT16_MIN (-32767-1)
# define INT32_MIN (-2147483647-1)
# define INT64_MIN (-__INT64_C(9223372036854775807)-1)
/* Maximum of signed integral types. */
# define INT8_MAX (127)
# define INT16_MAX (32767)
# define INT32_MAX (2147483647)
# define INT64_MAX (__INT64_C(9223372036854775807))
/* Maximum of unsigned integral types. */
# define UINT8_MAX (255)
# define UINT16_MAX (65535)
# define UINT32_MAX (4294967295U)
# define UINT64_MAX (__UINT
stdint.h 文件 int8_t uint8_t int16_t uint16_t (二)
最新推荐文章于 2023-02-16 16:41:19 发布
本文深入探讨了stdint.h头文件中定义的固定宽度整数类型,如int8_t, uint8_t, int16_t和uint16_t,它们在C和C++编程中的作用和用途,以及如何使用这些类型确保跨平台的整数精度和兼容性。"
81571922,7242526,高性能数据分析HPDA:新兴技术与富士通解决方案,"['高性能计算', '大数据分析', 'HPC市场', '云服务', '存储技术']
摘要由CSDN通过智能技术生成