diff options
author | 2010-06-27 20:27:15 +0200 | |
---|---|---|
committer | 2010-06-27 20:34:12 +0200 | |
commit | 775c6bc9a480a58abacef77018dda5391d4d363a (patch) | |
tree | 00176c68b3b13e31e62d2181538a3a6f7604da66 /plugins/ao/ao.h | |
parent | 054be7fb7a39dc2e9162b9f4a13bf17f2c3360d3 (diff) |
ao SPU reentrancy WIP
Diffstat (limited to 'plugins/ao/ao.h')
-rwxr-xr-x | plugins/ao/ao.h | 50 |
1 files changed, 36 insertions, 14 deletions
diff --git a/plugins/ao/ao.h b/plugins/ao/ao.h index 010317be..a9b0f01a 100755 --- a/plugins/ao/ao.h +++ b/plugins/ao/ao.h @@ -109,6 +109,42 @@ typedef signed long long int64; typedef unsigned long long uint64; #endif +typedef int8 s8; +typedef int16 s16; +typedef int32 s32; +typedef int64 s64; + +typedef uint8 u8; +typedef uint16 u16; +typedef uint32 u32; +typedef uint64 u64; + +#ifndef INLINE +#if defined(_MSC_VER) +#define INLINE __forceinline +#elif defined(__GNUC__) +#define INLINE __inline__ +#elif defined(_MWERKS_) +#define INLINE inline +#elif defined(__powerc) +#define INLINE inline +#else +#define INLINE +#endif +#endif + +#if LSB_FIRST +static INLINE u16 BFLIP16(u16 x) +{ + return x; +} +#else +static INLINE u16 BFLIP16(u16 x) +{ + return( ((x>>8)&0xFF)| ((x&0xFF)<<8) ); +} +#endif + #ifdef WIN32 #ifndef _BASETSD_H typedef signed int INT32; @@ -128,20 +164,6 @@ typedef unsigned long long UINT64; #endif #endif -#ifndef INLINE -#if defined(_MSC_VER) -#define INLINE __forceinline -#elif defined(__GNUC__) -#define INLINE __inline__ -#elif defined(_MWERKS_) -#define INLINE inline -#elif defined(__powerc) -#define INLINE inline -#else -#define INLINE -#endif -#endif - #if LSB_FIRST #define LE16(x) (x) #define LE32(x) (x) |