uint64_t 头文件 linux,【Linux】uint64_t(3) - Linux man page

本文详细介绍了C99标准中的标准整数类型,特别是uint64_t在Linux环境下的定义。这些类型确保了在不同平台下具有特定宽度的整数表示,包括精确宽度、最小宽度、最快宽度和最大宽度的类型。同时,文中还列出了各种类型的最大值和最小值,以及对应的宏定义。
摘要由CSDN通过智能技术生成

Name

: Standard Integer Types

-

Detailed Description

#include

Use [u]intN_t if you need exactly N bits.

Since these typedefs are mandated by the C99 standard, they are

preferred over rolling your own typedefs.

Exact-width integer types

Integer types having exactly the specified width

typedef signed char int8_t

typedef unsigned char uint8_t

typedef signed int int16_t

typedef unsigned int uint16_t

typedef signed long int int32_t

typedef unsigned long int uint32_t

typedef signed long long int int64_t

typedef unsigned long long int uint64_t

Integer types capable of holding object pointers

These allow you to declare variables of the same size as a

pointer.

typedef int16_t intptr_t

typedef uint16_t uintptr_t

Minimum-width integer types

Integer types having at least the specified width

typedef int8_t int_least8_t

typedef uint8_t uint_least8_t

typedef int16_t int_least16_t

typedef uint16_t uint_least16_t

typedef int32_t int_least32_t

typedef uint32_t uint_least32_t

typedef int64_t int_least64_t

typedef uint64_t uint_least64_t

Fastest minimum-width integer types

Integer types being usually fastest having at least the

specified width

typedef int8_t int_fast8_t

typedef uint8_t uint_fast8_t

typedef int16_t int_fast16_t

typedef uint16_t uint_fast16_t

typedef int32_t int_fast32_t

typedef uint32_t uint_fast32_t

typedef int64_t int_fast64_t

typedef uint64_t uint_fast64_t

Greatest-width integer types

Types designating integer data capable of representing any

value of any integer type in the corresponding signed or unsigned

category

typedef int64_t intmax_t

typedef uint64_t uintmax_t

Limits of specified-width integer types

C++ implementations should define these macros only when

__STDC_LIMIT_MACROS is defined before

is included

#define INT8_MAX 0x7f

#define INT8_MIN (-INT8_MAX - 1)

#define UINT8_MAX (__CONCAT(INT8_MAX, U) * 2U + 1U)

#define INT16_MAX 0x7fff

#define INT16_MIN (-INT16_MAX - 1)

#define UINT16_MAX (__CONCAT(INT16_MAX, U) * 2U +

1U)

#define INT32_MAX 0x7fffffffL

#define INT32_MIN (-INT32_MAX - 1L)

#define UINT32_MAX (__CONCAT(INT32_MAX, U) * 2UL +

1UL)

#define INT64_MAX 0x7fffffffffffffffLL

#define INT64_MIN (-INT64_MAX - 1LL)

#define UIN

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值