Commit 086b493a authored by Erik de Castro Lopo's avatar Erik de Castro Lopo

SIMD: Add const qualifier where appropriate

Patch-from: lvqcl <lvqcl.mail@gmail.com>
parent 25c6cbe2
...@@ -52,7 +52,7 @@ void FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_avx2(const FLAC_ ...@@ -52,7 +52,7 @@ void FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_avx2(const FLAC_
{ {
int i; int i;
FLAC__int32 sum; FLAC__int32 sum;
__m128i cnt = _mm_cvtsi32_si128(lp_quantization); const __m128i cnt = _mm_cvtsi32_si128(lp_quantization);
FLAC__ASSERT(order > 0); FLAC__ASSERT(order > 0);
FLAC__ASSERT(order <= 32); FLAC__ASSERT(order <= 32);
...@@ -407,7 +407,7 @@ void FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_avx2(const FLAC__in ...@@ -407,7 +407,7 @@ void FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_avx2(const FLAC__in
{ {
int i; int i;
FLAC__int32 sum; FLAC__int32 sum;
__m128i cnt = _mm_cvtsi32_si128(lp_quantization); const __m128i cnt = _mm_cvtsi32_si128(lp_quantization);
FLAC__ASSERT(order > 0); FLAC__ASSERT(order > 0);
FLAC__ASSERT(order <= 32); FLAC__ASSERT(order <= 32);
...@@ -764,8 +764,8 @@ void FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_avx2(const FLA ...@@ -764,8 +764,8 @@ void FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_avx2(const FLA
{ {
int i; int i;
FLAC__int64 sum; FLAC__int64 sum;
__m128i cnt = _mm_cvtsi32_si128(lp_quantization); const __m128i cnt = _mm_cvtsi32_si128(lp_quantization);
__m256i pack = _mm256_loadu_si256((const __m256i *)pack_arr); const __m256i pack = _mm256_loadu_si256((const __m256i *)pack_arr);
FLAC__ASSERT(order > 0); FLAC__ASSERT(order > 0);
FLAC__ASSERT(order <= 32); FLAC__ASSERT(order <= 32);
......
...@@ -55,7 +55,7 @@ void FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_sse2(const FLAC_ ...@@ -55,7 +55,7 @@ void FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_sse2(const FLAC_
{ {
int i; int i;
FLAC__int32 sum; FLAC__int32 sum;
__m128i cnt = _mm_cvtsi32_si128(lp_quantization); const __m128i cnt = _mm_cvtsi32_si128(lp_quantization);
FLAC__ASSERT(order > 0); FLAC__ASSERT(order > 0);
FLAC__ASSERT(order <= 32); FLAC__ASSERT(order <= 32);
......
...@@ -56,7 +56,7 @@ FLAC__SSE_TARGET("sse4.1") ...@@ -56,7 +56,7 @@ FLAC__SSE_TARGET("sse4.1")
void FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41(const FLAC__int32 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t order, int lp_quantization, FLAC__int32 residual[]) void FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41(const FLAC__int32 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t order, int lp_quantization, FLAC__int32 residual[])
{ {
int i; int i;
__m128i cnt = _mm_cvtsi32_si128(lp_quantization); const __m128i cnt = _mm_cvtsi32_si128(lp_quantization);
FLAC__ASSERT(order > 0); FLAC__ASSERT(order > 0);
FLAC__ASSERT(order <= 32); FLAC__ASSERT(order <= 32);
...@@ -592,7 +592,7 @@ FLAC__SSE_TARGET("sse4.1") ...@@ -592,7 +592,7 @@ FLAC__SSE_TARGET("sse4.1")
void FLAC__lpc_restore_signal_wide_intrin_sse41(const FLAC__int32 residual[], uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t order, int lp_quantization, FLAC__int32 data[]) void FLAC__lpc_restore_signal_wide_intrin_sse41(const FLAC__int32 residual[], uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t order, int lp_quantization, FLAC__int32 data[])
{ {
int i; int i;
__m128i cnt = _mm_cvtsi32_si128(lp_quantization); const __m128i cnt = _mm_cvtsi32_si128(lp_quantization);
if (!data_len) if (!data_len)
return; return;
...@@ -924,7 +924,7 @@ void FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_sse41(const FLAC__i ...@@ -924,7 +924,7 @@ void FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_sse41(const FLAC__i
{ {
int i; int i;
FLAC__int32 sum; FLAC__int32 sum;
__m128i cnt = _mm_cvtsi32_si128(lp_quantization); const __m128i cnt = _mm_cvtsi32_si128(lp_quantization);
FLAC__ASSERT(order > 0); FLAC__ASSERT(order > 0);
FLAC__ASSERT(order <= 32); FLAC__ASSERT(order <= 32);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment