CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

cstypes.h File Reference

#include "csplatform.h"
#include <float.h>
#include <stddef.h>

Go to the source code of this file.

Specific sized types

These types should be used ONLY when you need a variable of an explicit number of bits.

For all other cases, you should use normal char, short, int, long, etc., types since they are treated as "natural" types and will generally have better performance characteristics than the explicitly-sized types. Use the explicitly-sized types sparingly.

#define CONST_INT64(x)   INT64_C(x)
 Specify a 64 bit integer constant.
#define CONST_UINT64(x)   UINT64_C(x)
 Specify 64 bit unsigned integer constant.
typedef unsigned char uint8
 unsigned 8-bit integer (0..255)
typedef char int8
 signed 8-bit integer (-128..127)
typedef unsigned short uint16
 unsigned 16-bit integer (0..65 535)
typedef short int16
 signed 16-bit integer (-32 768..32 767)
typedef unsigned int uint32
 unsigned 32-bit integer (0..4 294 967 295)
typedef int int32
 signed 32-bit integer (-2 147 483 648..2 147 483 647)
typedef unsigned long long uint64
 unsigned 64-bit integer
typedef long long int64
 signed 64-bit integer

Other types

typedef int intptr_t
 Integer at least as wide as a pointer.
typedef unsigned int uintptr_t
 Unsigned integer at least as wide as a pointer.
typedef int ptrdiff_t
 Difference of 2 pointers.
typedef int64 intmax_t
 Greatest-width integer.
typedef uint64 uintmax_t
 Greatest-width unsigned integer.
typedef long long longlong
 Type to pass to cs_snprintf() as an argument to the "%lld" format specifier.
typedef unsigned long long ulonglong
 Type to pass to cs_snprintf() as an argument to the "%llu" format specifier.
typedef unsigned int csTicks
 A time value measured in milliseconds (1/1000 of a second).
typedef unsigned int uint
 Shortcut for default unsigned int.


Detailed Description

Definition in file cstypes.h.


Generated for Crystal Space by doxygen 1.3.9.1