aboutsummaryrefslogtreecommitdiff
path: root/source/apu_blargg.c
diff options
context:
space:
mode:
authoraliaspider2014-11-04 05:41:09 +0100
committeraliaspider2014-11-04 05:41:09 +0100
commit6a99106915b5dc07508da64516acfc71ae140659 (patch)
tree91dfd906d4ad7149fc308b0c4e0e56f8dc5ab32d /source/apu_blargg.c
parentf1652ab19293a9dc623d1b201456995456b495f3 (diff)
downloadsnes9x2005-6a99106915b5dc07508da64516acfc71ae140659.tar.gz
snes9x2005-6a99106915b5dc07508da64516acfc71ae140659.tar.bz2
snes9x2005-6a99106915b5dc07508da64516acfc71ae140659.zip
blargg_apu : small speedup
Diffstat (limited to 'source/apu_blargg.c')
-rw-r--r--source/apu_blargg.c11
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