Add a fast shift for int64 values.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Fri, 31 Jan 2014 09:36:18 +0000 (20:36 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Fri, 31 Jan 2014 09:36:23 +0000 (20:36 +1100)
commit4618512de24828bdea72584081bd94a4024681b6
tree8ab899df310a837ebae051e1e4df86cafb951913
parenta03999f570b899da03de6095b22f9562ef399fe0
Add a fast shift for int64 values.

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>
src/libFLAC/lpc_intrin_sse41.c
src/libFLAC/stream_decoder.c