Skip to content

genapic/GenApiCTypes.h#

Platform-dependent type definitions. Define a subset of the types and macros that are provided by the stdint.h header on systems that comply with the C99 standard. This is meant to aid in portability.

Types#

Name
typedef unsigned char _Bool
typedef __int16 int16_t
typedef __int32 int32_t
typedef __int64 int64_t
typedef __int8 int8_t
typedef __int32 intptr_t
typedef unsigned __int16 uint16_t
typedef unsigned __int32 uint32_t
typedef unsigned __int64 uint64_t
typedef unsigned __int8 uint8_t
typedef unsigned __int32 uintptr_t

Defines#

Name
INT32_MAX
INT32_MIN
INT64_MAX
INT64_MIN
INT8_MAX
INT8_MIN
UINT32_MAX
UINT64_MAX
UINT8_MAX

Types Documentation#

typedef _Bool#

typedef unsigned char _Bool;

Mimic c99 built-in _Bool type.

typedef int16_t#

typedef __int16 int16_t;

Portable 16 bit-wide signed integer type.

typedef int32_t#

typedef __int32 int32_t;

Portable 32 bit-wide signed integer type.

typedef int64_t#

typedef __int64 int64_t;

Portable 64 bit-wide signed integer type.

typedef int8_t#

typedef __int8 int8_t;

Portable 8 bit-wide signed integer type.

typedef intptr_t#

typedef __int32 intptr_t;

Portable signed integer type capable of holding a pointer.

typedef uint16_t#

typedef unsigned __int16 uint16_t;

Portable 16 bit-wide unsigned integer type.

typedef uint32_t#

typedef unsigned __int32 uint32_t;

Portable 32 bit-wide unsigned integer type.

typedef uint64_t#

typedef unsigned __int64 uint64_t;

Portable 64 bit-wide unsigned integer type.

typedef uint8_t#

typedef unsigned __int8 uint8_t;

Portable 8 bit-wide unsigned integer type.

typedef uintptr_t#

typedef unsigned __int32 uintptr_t;

Portable unsigned integer type capable of holding a pointer.

Macros Documentation#

define INT32_MAX#

#define INT32_MAX 0x000000007fffffffLL    /* Maximum signed int32 value. */

define INT32_MIN#

#define INT32_MIN 0xffffffff80000000LL    /* Minimum signed int32 value. */

define INT64_MAX#

#define INT64_MAX 0x7fffffffffffffffLL    /* Maximum signed int64 value. */

define INT64_MIN#

#define INT64_MIN 0x8000000000000000LL    /* Minimum signed int64 value. */

define INT8_MAX#

#define INT8_MAX 0x000000000000007fLL    /* Maximum signed int8 value. */

define INT8_MIN#

#define INT8_MIN 0xffffffffffffff80LL    /* Minimum signed int8 value. */

define UINT32_MAX#

#define UINT32_MAX 0x00000000ffffffffULL   /* Maximum unsigned int32 value. */

define UINT64_MAX#

#define UINT64_MAX 0xffffffffffffffffULL   /* Maximum unsigned int64 value. */

define UINT8_MAX#

#define UINT8_MAX 0x00000000000000ffULL   /* Maximum unsigned int8 value. */