Small optimizations to DSP.

This commit is contained in:
Brandon Wright 2018-04-13 11:56:06 -05:00
parent f8a7f23a4b
commit 287fab5f1b
2 changed files with 1 additions and 14 deletions

View File

@ -62,24 +62,11 @@ static BOOST::uint8_t const initial_regs [SPC_DSP::register_count] =
out [0] = l;\
out [1] = r;\
out += 2;\
if ( out >= m.out_end )\
{\
check( out == m.out_end );\
check( m.out_end != &m.extra [extra_size] || \
(m.extra <= m.out_begin && m.extra < &m.extra [extra_size]) );\
out = m.extra;\
m.out_end = &m.extra [extra_size];\
}\
}\
void SPC_DSP::set_output( sample_t* out, int size )
{
require( (size & 1) == 0 ); // must be even
if ( !out )
{
out = m.extra;
size = extra_size;
}
m.out_begin = out;
m.out = out;
m.out_end = out + size;

View File

@ -10,7 +10,7 @@
#endif
// Uncomment to enable platform-specific (and possibly non-portable) optimizations
//#define BLARGG_NONPORTABLE 1
#define BLARGG_NONPORTABLE 1
// Uncomment if automatic byte-order determination doesn't work
//#define BLARGG_BIG_ENDIAN 1