mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
DSP LLE: Remove byteswaps and other bloat from the hot path (do them at load/dma time). Minor speedup, perhaps.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2939 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -27,10 +27,22 @@
|
||||
|
||||
#include "Globals.h"
|
||||
|
||||
u16 dsp_fetch_code();
|
||||
u16 dsp_peek_code();
|
||||
#include "gdsp_interpreter.h"
|
||||
|
||||
u16 dsp_imem_read(u16 addr);
|
||||
void dsp_dmem_write(u16 addr, u16 val);
|
||||
u16 dsp_dmem_read(u16 addr);
|
||||
|
||||
inline u16 dsp_fetch_code()
|
||||
{
|
||||
u16 opc = dsp_imem_read(g_dsp.pc);
|
||||
g_dsp.pc++;
|
||||
return opc;
|
||||
}
|
||||
|
||||
inline u16 dsp_peek_code()
|
||||
{
|
||||
return dsp_imem_read(g_dsp.pc);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user