Re: [flac-dev] PATCH for lpc_intrin_sse41.c: faster shifts

2014-01-31 Thread Erik de Castro Lopo
lvqcl wrote: > Erik de Castro Lopo wrote: > > > I think you forgot to attach the patch for this one :-). > > Oops. Applied, thanks. Erik -- -- Erik de Castro Lopo http://www.mega-nerd.com/

Re: [flac-dev] PATCH for lpc_intrin_sse41.c: faster shifts

2014-01-30 Thread lvqcl
Erik de Castro Lopo wrote: I think you forgot to attach the patch for this one :-). Oops. fast_shift.patch Description: Binary data ___ flac-dev mailing list flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev

Re: [flac-dev] PATCH for lpc_intrin_sse41.c: faster shifts

2014-01-30 Thread Erik de Castro Lopo
lvqcl wrote: > It turns out that int64 shift is quite slow... > > 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 notice