3 回答
TA贡献1836条经验 获得超3个赞
Type ILP64 LP64 LLP64
char 8 8 8
short 16 16 16
int 64 32 32
long 64 64 32
long long 64 64 64
pointer 64 64 64
<inttypes.h>
int8_t
-8位整数 int16_t
-16位整数 int32_t
-32位整数 int64_t
-64位整数 uintptr_t
-大到足以容纳指针的无符号整数 intmax_t
-平台上整数的最大大小(可能大于 int64_t
)
intptr_t
uintptr_t
ptrdiff_t
).
TA贡献1785条经验 获得超4个赞
INT
, LONG
WinDef.h
Type | S/U | x86 | x64 ----------------------------+-----+--------+------- BYTE, BOOLEAN | U | 8 bit | 8 bit ----------------------------+-----+--------+------- SHORT | S | 16 bit | 16 bit USHORT, WORD | U | 16 bit | 16 bit ----------------------------+-----+--------+------- INT, LONG | S | 32 bit | 32 bit UINT, ULONG, DWORD | U | 32 bit | 32 bit ----------------------------+-----+--------+------- INT_PTR, LONG_PTR, LPARAM | S | 32 bit | 64 bit UINT_PTR, ULONG_PTR, WPARAM | U | 32 bit | 64 bit ----------------------------+-----+--------+------- LONGLONG | S | 64 bit | 64 bit ULONGLONG, QWORD | U | 64 bit | 64 bit
- 3 回答
- 0 关注
- 2464 浏览
添加回答
举报