aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-05-11 16:12:32 -0300
committerJames Almer <jamrial@gmail.com>2024-05-12 12:36:46 -0300
commit467d84a06d1b3535e24dbe5046936dc2ee439ea3 (patch)
tree2a23a43ab68dcf9c383a1fae2b38ad0aca3b0c2b
parent02c032abcd43465b30ad58ede18abcdc24b5c006 (diff)
downloadffmpeg-467d84a06d1b3535e24dbe5046936dc2ee439ea3.tar.gz
checkasm/flacdsp: run lpc benchmarks with an unmodified buffer
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--tests/checkasm/flacdsp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/checkasm/flacdsp.c b/tests/checkasm/flacdsp.c
index b308237db1..6561b4ed20 100644
--- a/tests/checkasm/flacdsp.c
+++ b/tests/checkasm/flacdsp.c
@@ -58,6 +58,7 @@ static void check_lpc(int pred_order)
{
int qlevel = rnd() % 16;
LOCAL_ALIGNED_16(int32_t, coeffs, [32]);
+ LOCAL_ALIGNED_16(int32_t, dst, [BUF_SIZE]);
LOCAL_ALIGNED_16(int32_t, dst0, [BUF_SIZE]);
LOCAL_ALIGNED_16(int32_t, dst1, [BUF_SIZE]);
@@ -66,14 +67,15 @@ static void check_lpc(int pred_order)
for (int i = 0; i < 32; i++)
coeffs[i] = rnd();
for (int i = 0; i < BUF_SIZE; i++)
- dst0[i] = rnd();
+ dst[i] = rnd();
- memcpy(dst1, dst0, BUF_SIZE * sizeof (int32_t));
+ memcpy(dst0, dst, BUF_SIZE * sizeof (int32_t));
+ memcpy(dst1, dst, BUF_SIZE * sizeof (int32_t));
call_ref(dst0, coeffs, pred_order, qlevel, BUF_SIZE);
call_new(dst1, coeffs, pred_order, qlevel, BUF_SIZE);
if (memcmp(dst0, dst1, BUF_SIZE * sizeof (int32_t)) != 0)
fail();
- bench_new(dst1, coeffs, pred_order, qlevel, BUF_SIZE);
+ bench_new(dst, coeffs, pred_order, qlevel, BUF_SIZE);
}
void checkasm_check_flacdsp(void)