[FFmpeg-cvslog] checkasm/flacdsp: run lpc benchmarks with an unmodified buffer
James Almer
git at videolan.org
Sun May 12 23:39:16 EEST 2024
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat May 11 16:12:32 2024 -0300| [467d84a06d1b3535e24dbe5046936dc2ee439ea3] | committer: James Almer
checkasm/flacdsp: run lpc benchmarks with an unmodified buffer
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=467d84a06d1b3535e24dbe5046936dc2ee439ea3
---
tests/checkasm/flacdsp.c | 8 +++++---
1 file 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)
More information about the ffmpeg-cvslog
mailing list