Forceinlining these brings Fatal Frame from 159fps to 183 :)

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@611 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
ramapcsx2 2009-01-20 20:51:23 +00:00 committed by Gregory Hainaut
parent 8447734202
commit d2129c63ae
2 changed files with 20 additions and 20 deletions

View File

@ -69,7 +69,7 @@ void hwReset()
ipuReset();
}
u8 hwRead8(u32 mem)
__forceinline u8 hwRead8(u32 mem)
{
u8 ret;
@ -102,7 +102,7 @@ u8 hwRead8(u32 mem)
return ret;
}
u16 hwRead16(u32 mem)
__forceinline u16 hwRead16(u32 mem)
{
u16 ret;
@ -151,7 +151,7 @@ u16 hwRead16(u32 mem)
return ret;
}
u32 hwRead32(u32 mem) {
__forceinline u32 hwRead32(u32 mem) {
u32 ret;
//IPU regs
@ -297,7 +297,7 @@ u32 hwRead32(u32 mem) {
return ret;
}
u64 hwRead64(u32 mem) {
__forceinline u64 hwRead64(u32 mem) {
u64 ret;
if ((mem>=0x10002000) && (mem<0x10003000)) {
@ -317,7 +317,7 @@ u64 hwRead64(u32 mem) {
return ret;
}
void hwRead128(u32 mem, u64 *out) {
__forceinline void hwRead128(u32 mem, u64 *out) {
if (mem >= 0x10004000 && mem < 0x10008000) {
ReadFIFO(mem, out); return;
}
@ -366,7 +366,7 @@ static void DmaExec( void (*func)(), u32 mem, u32 value )
char sio_buffer[1024];
int sio_count;
void hwWrite8(u32 mem, u8 value) {
__forceinline void hwWrite8(u32 mem, u8 value) {
#ifdef PCSX2_DEVBUILD
if( mem >= 0x10000000 && mem < 0x10008000 )
@ -497,7 +497,7 @@ void hwWrite8(u32 mem, u8 value) {
}
}
void hwWrite16(u32 mem, u16 value)
__forceinline void hwWrite16(u32 mem, u16 value)
{
#ifdef PCSX2_DEVBUILD
if( mem >= 0x10000000 && mem < 0x10008000 )
@ -714,7 +714,7 @@ void hwWrite16(u32 mem, u16 value)
}
void hwWrite32(u32 mem, u32 value) {
__forceinline void hwWrite32(u32 mem, u32 value) {
if ((mem>=0x10002000) && (mem<0x10003000)) { //IPU regs
ipuWrite32(mem,value);
@ -985,7 +985,7 @@ void hwWrite32(u32 mem, u32 value) {
}
}
void hwWrite64(u32 mem, u64 value) {
__forceinline void hwWrite64(u32 mem, u64 value) {
u32 val32;
int i;
@ -1090,7 +1090,7 @@ void hwWrite64(u32 mem, u64 value) {
}
}
void hwWrite128(u32 mem, const u64 *value) {
__forceinline void hwWrite128(u32 mem, const u64 *value) {
if (mem >= 0x10004000 && mem < 0x10008000) {
WriteFIFO(mem, value); return;
}

View File

@ -361,35 +361,35 @@ void hwReset();
void hwShutdown();
// hw read functions
u8 hwRead8 (u32 mem);
extern u8 hwRead8 (u32 mem);
int hwConstRead8 (u32 x86reg, u32 mem, u32 sign);
u16 hwRead16(u32 mem);
extern u16 hwRead16(u32 mem);
int hwConstRead16(u32 x86reg, u32 mem, u32 sign);
u32 hwRead32(u32 mem);
extern u32 hwRead32(u32 mem);
int hwConstRead32(u32 x86reg, u32 mem);
u64 hwRead64(u32 mem);
extern u64 hwRead64(u32 mem);
void hwConstRead64(u32 mem, int mmreg);
void hwRead128(u32 mem, u64 *out);
extern void hwRead128(u32 mem, u64 *out);
void hwConstRead128(u32 mem, int xmmreg);
// hw write functions
void hwWrite8 (u32 mem, u8 value);
extern void hwWrite8 (u32 mem, u8 value);
void hwConstWrite8 (u32 mem, int mmreg);
void hwWrite16(u32 mem, u16 value);
extern void hwWrite16(u32 mem, u16 value);
void hwConstWrite16(u32 mem, int mmreg);
void hwWrite32(u32 mem, u32 value);
extern void hwWrite32(u32 mem, u32 value);
void hwConstWrite32(u32 mem, int mmreg);
void hwWrite64(u32 mem, u64 value);
extern void hwWrite64(u32 mem, u64 value);
void hwConstWrite64(u32 mem, int mmreg);
void hwWrite128(u32 mem, const u64 *value);
extern void hwWrite128(u32 mem, const u64 *value);
void hwConstWrite128(u32 mem, int xmmreg);
void hwIntcIrq(int n);