a missing file...

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@860 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
fires.gc 2008-10-14 06:10:02 +00:00
parent 7aead8d03e
commit d3cbb81f0c
1 changed files with 1 additions and 30 deletions

View File

@ -15,38 +15,9 @@
// Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/
#pragma once
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
#define ArrayByteSwap(a) (ByteSwap(a, a+sizeof(u8)));
void ByteSwap(u8 *valueA, u8 *valueB);
u16 __inline bswap16(u16 s)
{
return (s>>8) | (s<<8);
}
u32 __inline bswap32(u32 s)
{
return (u32)bswap16((u16)(s>>16)) | ((u32)bswap16((u16)s)<<16);
}
#ifndef max
template<class T>
T __inline max(T a, T b)
{
return (b>a)?b:a;
}
#endif
#define BE16(x) ((u16((x)[0])<<8) | u16((x)[1]))
#define BE32(x) ((u32((x)[0])<<24) | (u32((x)[1])<<16) | (u32((x)[2])<<8) | u32((x)[3]))
#include "Common.h"
class GCMemcard
{