From 6a99106915b5dc07508da64516acfc71ae140659 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Tue, 4 Nov 2014 05:41:09 +0100 Subject: blargg_apu : small speedup --- source/apu_blargg.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'source') 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 #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 -- cgit v1.2.3