Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6391333
  • 博文数量: 579
  • 博客积分: 1548
  • 博客等级: 上尉
  • 技术积分: 16635
  • 用 户 组: 普通用户
  • 注册时间: 2012-12-12 15:29
个人简介

http://www.csdn.net/ http://www.arm.com/zh/ https://www.kernel.org/ http://www.linuxpk.com/ http://www.51develop.net/ http://linux.chinaitlab.com/ http://www.embeddedlinux.org.cn http://bbs.pediy.com/

文章分类

全部博文(579)

文章存档

2018年(18)

2015年(91)

2014年(159)

2013年(231)

2012年(80)

分类: LINUX

2015-05-14 14:57:16

: Standard Integer Types

Exact-width integer types

Integer types having exactly the specified width

typedef signed char 
 
typedef unsigned char 
 
typedef signed int 
 
typedef unsigned int 
 
typedef signed long int 
 
typedef unsigned long int 
 
typedef signed long long int 
 
typedef unsigned long long int 
 

Integer types capable of holding object pointers

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

typedef  
 
typedef  
 

Minimum-width integer types

Integer types having at least the specified width

typedef  
 
typedef  
 
typedef  
 
typedef  
 
typedef  
 
typedef  
 
typedef  
 
typedef  
 

Fastest minimum-width integer types

Integer types being usually fastest having at least the specified width

typedef  
 
typedef  
 
typedef  
 
typedef  
 
typedef  
 
typedef  
 
typedef  
 
typedef  
 

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  
 
typedef  
 

Limits of specified-width integer types

C++ implementations should define these macros only when __STDC_LIMIT_MACROS is defined before <> is included

#define     0x7f
 
#define     (- - 1)
 
#define     ( * 2 + 1)
 
#define     0x7fff
 
#define     (- - 1)
 
#define     (__CONCAT(, U) * 2U + 1U)
 
#define     0x7fffffffL
 
#define     (- - 1L)
 
#define     (__CONCAT(, U) * 2UL + 1UL)
 
#define     0x7fffffffffffffffLL
 
#define     (- - 1LL)
 
#define     (__CONCAT(, U) * 2ULL + 1ULL)
 

Limits of minimum-width integer types

#define     
 
#define     
 
#define     
 
#define     
 
#define     
 
#define     
 
#define     
 
#define     
 
#define     
 
#define     
 
#define     
 
#define     
 

Limits of fastest minimum-width integer types

#define     
 
#define     
 
#define     
 
#define     
 
#define     
 
#define     
 
#define     
 
#define     
 
#define     
 
#define     
 
#define     
 
#define     
 

Limits of integer types capable of holding object pointers

#define     
 
#define     
 
#define     
 

Limits of greatest-width integer types

#define     
 
#define     
 
#define     
 

Limits of other integer types

C++ implementations should define these macros only when __STDC_LIMIT_MACROS is defined before <> is included

#define     
 
#define     
 
#define     
 
#define     
 
#define     
 
#define  WCHAR_MAX   __WCHAR_MAX__
 
#define  WCHAR_MIN   __WCHAR_MIN__
 
#define  WINT_MAX   __WINT_MAX__
 
#define  WINT_MIN   __WINT_MIN__
 

Macros for integer constants

C++ implementations should define these macros only when __STDC_CONSTANT_MACROS is defined before <> is included.

These definitions are valid for integer constants without suffix and for macros defined as integer constant without suffix

#define  (value)   (() value)
 
#define  (value)   (() __CONCAT(value, U))
 
#define  (value)   value
 
#define  (value)   __CONCAT(value, U)
 
#define  (value)   __CONCAT(value, L)
 
#define  (value)   __CONCAT(value, UL)
 
#define  (value)   __CONCAT(value, LL)
 
#define  (value)   __CONCAT(value, ULL)
 
#define  (value)   __CONCAT(value, LL)
 
#define  (value)   __CONCAT(value, ULL)
 

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.

Macro Definition Documentation

#define INT16_C (   value )    value

define a constant of type int16_t

#define INT16_MAX   0x7fff

largest positive value an int16_t can hold.

#define INT16_MIN   (- - 1)

smallest negative value an int16_t can hold.

#define INT32_C (   value )    __CONCAT(value, L)

define a constant of type int32_t

#define INT32_MAX   0x7fffffffL

largest positive value an int32_t can hold.

#define INT32_MIN   (- - 1L)

smallest negative value an int32_t can hold.

#define INT64_C (   value )    __CONCAT(value, LL)

define a constant of type int64_t

#define INT64_MAX   0x7fffffffffffffffLL

largest positive value an int64_t can hold.

#define INT64_MIN   (- - 1LL)

smallest negative value an int64_t can hold.

#define INT8_C (   value )    (() value)

define a constant of type int8_t

#define INT8_MAX   0x7f

largest positive value an int8_t can hold.

#define INT8_MIN   (- - 1)

smallest negative value an int8_t can hold.

#define INT_FAST16_MAX   

largest positive value an int_fast16_t can hold.

#define INT_FAST16_MIN   

smallest negative value an int_fast16_t can hold.

#define INT_FAST32_MAX   

largest positive value an int_fast32_t can hold.

#define INT_FAST32_MIN   

smallest negative value an int_fast32_t can hold.

#define INT_FAST64_MAX   

largest positive value an int_fast64_t can hold.

#define INT_FAST64_MIN   

smallest negative value an int_fast64_t can hold.

#define INT_FAST8_MAX   

largest positive value an int_fast8_t can hold.

#define INT_FAST8_MIN   

smallest negative value an int_fast8_t can hold.

#define INT_LEAST16_MAX   

largest positive value an int_least16_t can hold.

#define INT_LEAST16_MIN   

smallest negative value an int_least16_t can hold.

#define INT_LEAST32_MAX   

largest positive value an int_least32_t can hold.

#define INT_LEAST32_MIN   

smallest negative value an int_least32_t can hold.

#define INT_LEAST64_MAX   

largest positive value an int_least64_t can hold.

#define INT_LEAST64_MIN   

smallest negative value an int_least64_t can hold.

#define INT_LEAST8_MAX   

largest positive value an int_least8_t can hold.

#define INT_LEAST8_MIN   

smallest negative value an int_least8_t can hold.

#define INTMAX_C (   value )    __CONCAT(value, LL)

define a constant of type intmax_t

#define INTMAX_MAX   

largest positive value an intmax_t can hold.

#define INTMAX_MIN   

smallest negative value an intmax_t can hold.

#define INTPTR_MAX   

largest positive value an intptr_t can hold.

#define INTPTR_MIN   

smallest negative value an intptr_t can hold.

#define PTRDIFF_MAX   

largest positive value a ptrdiff_t can hold.

#define PTRDIFF_MIN   

smallest negative value a ptrdiff_t can hold.

#define SIG_ATOMIC_MAX   

largest positive value a sig_atomic_t can hold.

#define SIG_ATOMIC_MIN   

smallest negative value a sig_atomic_t can hold.

#define SIZE_MAX   

largest value a size_t can hold.

#define UINT16_C (   value )    __CONCAT(value, U)

define a constant of type uint16_t

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

largest value an uint16_t can hold.

#define UINT32_C (   value )    __CONCAT(value, UL)

define a constant of type uint32_t

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

largest value an uint32_t can hold.

#define UINT64_C (   value )    __CONCAT(value, ULL)

define a constant of type uint64_t

#define UINT64_MAX   (__CONCAT(, U) * 2ULL + 1ULL)

largest value an uint64_t can hold.

#define UINT8_C (   value )    (() __CONCAT(value, U))

define a constant of type uint8_t

#define UINT8_MAX   ( * 2 + 1)

largest value an uint8_t can hold.

#define UINT_FAST16_MAX   

largest value an uint_fast16_t can hold.

#define UINT_FAST32_MAX   

largest value an uint_fast32_t can hold.

#define UINT_FAST64_MAX   

largest value an uint_fast64_t can hold.

#define UINT_FAST8_MAX   

largest value an uint_fast8_t can hold.

#define UINT_LEAST16_MAX   

largest value an uint_least16_t can hold.

#define UINT_LEAST32_MAX   

largest value an uint_least32_t can hold.

#define UINT_LEAST64_MAX   

largest value an uint_least64_t can hold.

#define UINT_LEAST8_MAX   

largest value an uint_least8_t can hold.

#define UINTMAX_C (   value )    __CONCAT(value, ULL)

define a constant of type uintmax_t

#define UINTMAX_MAX   

largest value an uintmax_t can hold.

#define UINTPTR_MAX   

largest value an uintptr_t can hold.

Typedef Documentation

typedef signed int 

16-bit signed type.

typedef signed long int 

32-bit signed type.

typedef signed long long int 

64-bit signed type.

Note This type is not available when the compiler option -mint8 is in effect.
typedef signed char 

8-bit signed type.

typedef  

fastest signed int with at least 16 bits.

typedef  

fastest signed int with at least 32 bits.

typedef  

fastest signed int with at least 64 bits.

Note This type is not available when the compiler option -mint8 is in effect.
typedef  

fastest signed int with at least 8 bits.

typedef  

signed int with at least 16 bits.

typedef  

signed int with at least 32 bits.

typedef  

signed int with at least 64 bits.

Note This type is not available when the compiler option -mint8 is in effect.
typedef  

signed int with at least 8 bits.

typedef  

largest signed int available.

typedef  

Signed pointer compatible type.

typedef unsigned int 

16-bit unsigned type.

typedef unsigned long int 

32-bit unsigned type.

typedef unsigned long long int 

64-bit unsigned type.

Note This type is not available when the compiler option -mint8 is in effect.
typedef unsigned char 

8-bit unsigned type.

typedef  

fastest unsigned int with at least 16 bits.

typedef  

fastest unsigned int with at least 32 bits.

typedef  

fastest unsigned int with at least 64 bits.

Note This type is not available when the compiler option -mint8 is in effect.
typedef  

fastest unsigned int with at least 8 bits.

typedef  

unsigned int with at least 16 bits.

typedef  

unsigned int with at least 32 bits.

typedef  

unsigned int with at least 64 bits.

Note This type is not available when the compiler option -mint8 is in effect.
typedef  

unsigned int with at least 8 bits.

typedef  

largest unsigned int available.

typedef  

Unsigned pointer compatible type.



转载自:
阅读(4086) | 评论(0) | 转发(0) |
0

上一篇:程序的内存布局

下一篇:Linux的定时器

给主人留下些什么吧!~~