diff options
author | aliaspider | 2014-11-04 05:41:09 +0100 |
---|---|---|
committer | aliaspider | 2014-11-04 05:41:09 +0100 |
commit | 6a99106915b5dc07508da64516acfc71ae140659 (patch) | |
tree | 91dfd906d4ad7149fc308b0c4e0e56f8dc5ab32d | |
parent | f1652ab19293a9dc623d1b201456995456b495f3 (diff) | |
download | snes9x2005-6a99106915b5dc07508da64516acfc71ae140659.tar.gz snes9x2005-6a99106915b5dc07508da64516acfc71ae140659.tar.bz2 snes9x2005-6a99106915b5dc07508da64516acfc71ae140659.zip |
blargg_apu : small speedup
-rw-r--r-- | source/apu_blargg.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/apu_blargg.c b/source/apu_blargg.c index c241ec4..b1bb258 100644 --- a/source/apu_blargg.c +++ b/source/apu_blargg.c @@ -182,8 +182,12 @@ #include <limits.h> #ifndef INLINE +#ifdef PSP +#define INLINE __attribute((force_inline)) +#else #define INLINE inline #endif +#endif #include "blargg_endian.h" #include "apu_blargg.h" @@ -3059,8 +3063,8 @@ void spc_copy_state( unsigned char** io, dsp_copy_func_t copy ) ***********************************************************************************/ #define APU_DEFAULT_INPUT_RATE 32000 -#define APU_MINIMUM_SAMPLE_COUNT 512 -#define APU_MINIMUM_SAMPLE_BLOCK 128 +#define APU_MINIMUM_SAMPLE_COUNT (512*8) +#define APU_MINIMUM_SAMPLE_BLOCK (128*8) #define APU_NUMERATOR_NTSC 15664 #define APU_DENOMINATOR_NTSC 328125 #define APU_NUMERATOR_PAL 34176 @@ -3646,4 +3650,7 @@ void S9xAPULoadState (uint8_t *block) spc_remainder = GET_LE32(ptr); } +#undef INLINE +#define INLINE static inline + #endif |