Skip to content
  • Erik de Castro Lopo's avatar
    Add a fast shift for int64 values. · 4618512d
    Erik de Castro Lopo authored
    This patch changes the code from:
    	(FLAC__int32)(xmm.m128i_i64[0] >> lp_quantization)
    into:
    	_mm_cvtsi128_si32(_mm_srli_epi64(xmm, lp_quantization));
    
    Encoding of 24-bit .wav files with 32-bit FLAC became noticeably faster.
    
    Patch-from: lvqcl <lvqcl.mail@gmail.com>
    4618512d