diff options
| author | Yotam Barnoy | 2010-09-20 14:10:44 +0000 |
|---|---|---|
| committer | Yotam Barnoy | 2010-09-20 14:10:44 +0000 |
| commit | f7f743ac31d0ec5af6d21aa217dae7387498af42 (patch) | |
| tree | 3a16e7a42185cb21acaafc6ce9a27513bbd54b37 /common | |
| parent | 05f0ebf2620969277ff94ce486e13b19eb46c1c9 (diff) | |
| download | scummvm-rg350-f7f743ac31d0ec5af6d21aa217dae7387498af42.tar.gz scummvm-rg350-f7f743ac31d0ec5af6d21aa217dae7387498af42.tar.bz2 scummvm-rg350-f7f743ac31d0ec5af6d21aa217dae7387498af42.zip | |
PSP: switch from wrapping memcpy to defining our own memcpy
The advantage is that we get to do inlining and even use lwl and lwr instructions where appropriate. We have to do it ourselves because the PSP doesn't tolerate built-in instructions, but also we have a more efficient memcpy than the lib's.
svn-id: r52817
Diffstat (limited to 'common')
| -rw-r--r-- | common/scummsys.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/scummsys.h b/common/scummsys.h index df8b8e1901..b612c3b34b 100644 --- a/common/scummsys.h +++ b/common/scummsys.h @@ -315,12 +315,16 @@ #elif defined(__PSP__) #include <malloc.h> + #include "backends/platform/psp/memory.h" #define scumm_stricmp strcasecmp #define scumm_strnicmp strncasecmp #define SCUMM_LITTLE_ENDIAN #define SCUMM_NEED_ALIGNMENT + + /* to make an efficient, inlined memcpy implementation */ + #define memcpy(dst, src, size) psp_memcpy(dst, src, size) #elif defined(__amigaos4__) |
