Common - Basic Integer Types.

Typedefs

typedef unsigned char uint8_t
typedef unsigned short uint16_t
typedef unsigned int uint32_t
typedef ulonglong uint64_t
typedef signed char int8_t
typedef signed short int16_t
typedef signed int int32_t
typedef longlong int64_t
typedef int intptr_t
typedef unsigned int uintptr_t
typedef int64_t intmax_t
typedef uint64_t uintmax_t
typedef uintptr_t size_t
typedef intptr_t ptrdiff_t

Detailed Description

These definitions will need to be modified on systems where 'char', 'short' and 'int' have sizes different from 8, 16 and 32 bits.

Note, 'int' is assumed to be in 2s complement format and at least 32 bits in size.


Typedef Documentation

typedef unsigned char uint8_t

An 8 bit unsigned integer

Definition at line 134 of file common.h.

typedef unsigned short uint16_t

An 16 bit unsigned integer

Definition at line 135 of file common.h.

typedef unsigned int uint32_t

An 32 bit unsigned integer

Definition at line 136 of file common.h.

typedef ulonglong uint64_t

An 64 bit unsigned integer

Definition at line 137 of file common.h.

typedef signed char int8_t

An 8 bit signed integer (2s complement)

Definition at line 138 of file common.h.

typedef signed short int16_t

An 16 bit signed integer (2s complement)

Definition at line 139 of file common.h.

typedef signed int int32_t

An 32 bit signed integer (2s complement)

Definition at line 140 of file common.h.

typedef longlong int64_t

An 64 bit signed integer (2s complement)

Definition at line 141 of file common.h.

typedef int intptr_t

An signed integer of the same size as a pointer type

Definition at line 142 of file common.h.

typedef unsigned int uintptr_t

An unsigned integer of the same size as a pointer type

Definition at line 143 of file common.h.

typedef int64_t intmax_t

Largest signed integer type

Definition at line 144 of file common.h.

Largest unsigned integer type

Definition at line 145 of file common.h.

typedef uintptr_t size_t

A size of an object or memory region

Definition at line 146 of file common.h.

A signed integer which can hold the different between two pointer

Definition at line 147 of file common.h.


Generated by  doxygen 1.6.1