[ Home ]

platform.h File Reference

System dependant defines and macros. More...

#include <inttypes.h>

Include dependency graph for platform.h:

Go to the source code of this file.

Defines

#define PLATFORM_NAME   "Unknown OS"
#define PATH_SEP   '/'
#define CPUSTRING   "Unknown CPU"
#define OS_UNIX   1
#define NULL   ((void *)0)
#define INLINECALL
#define Swap16(x)   ( ( (((W16) (x)) & 0x00FF) << 8 ) | ( (((W16) (x))& 0xFF00) >> 8) )
#define Swap32(x)   ( ( ((W32) (x)) & 0xFF000000) >> 24 ) | ( ((( (W32) (x) ) & 0xFF0000) >> 8) ) | ( ((( (W32) (x) ) & 0xFF00) << 8 ) ) | ( (( (W32) (x) ) & 0xFF) << 24 )
#define Swap64(x)   ( ( Swap32( (x) & 0xFFFFFFFF ) << 32 ) | Swap32( (x) >> 32 ) )
#define BIG_ENDIAN_SYSTEM   1
#define BigShort(x)   ( x )
#define LittleShort(x)   Swap16( x )
#define BigLong(x)   ( x )
#define LittleLong(x)   Swap32( x )
#define BigFloat(x)   ( x )
#define LittleFloat(x)   SwapFloat( x )
#define Big64(x)   ( x )
#define Little64(x)   Swap64( x )

Typedefs

typedef uint8_t W8
typedef uint8_t * PW8
typedef int8_t SW8
typedef int8_t * PSW8
typedef uint16_t W16
typedef uint16_t * PW16
typedef int16_t SW16
typedef int16_t * PSW16
typedef uint32_t W32
typedef uint32_t * PW32
typedef int32_t SW32
typedef int32_t * PSW32
typedef uint64_t W64
typedef uint64_t * PW64
typedef int64_t SW64
typedef int64_t * PSW64

Enumerations

enum  wtBoolean { false = 0, true = 1 }


Detailed Description

System dependant defines and macros.

Author:
Michael Liebscher
Date:
2005-2007