...
#else
for (j=576/4;j>0;j--) { // Unroll loop 4 times
x = istep * *xr++;
/* *(ix++) = (int)( x + adj43[(int)x]); */
XRPOW_FTOI(x-.5, rx);
XRPOW_FTOI(x + QUANTFAC(rx), *(ix++));
}
#endif
...
That will be fast, but won't sound too good - need to repeat the loop body 4
times too. :)
BTW, I think some of the people compiling LAME have compilers that don't
like // comments.
Re the inline thing, we can use __inline under MSVC. Perhaps need a
LAME_INLINE #define somewhere - there's an INLINE #define in mpglib, but
it's probably best to keep changes there to a minimum, since it's a
third-party library...
-- Mat.
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )