This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit d920566afea459ea8700b4ac7c888ab78733a981 Author: Jeongkeun Kim <[email protected]> AuthorDate: Thu Aug 6 00:43:34 2026 +0900 Commit: Martin Storsjö <[email protected]> CommitDate: Sun Aug 9 00:18:08 2026 +0300 tests/checkasm/dcadsp: add test for lfe_x96_fixed --- tests/checkasm/dcadsp.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tests/checkasm/dcadsp.c b/tests/checkasm/dcadsp.c index 809a0a0974..0879977208 100644 --- a/tests/checkasm/dcadsp.c +++ b/tests/checkasm/dcadsp.c @@ -86,6 +86,26 @@ static void test_lfe_fir_fixed(void) bench_new(dst1, lfe + LFE_HISTORY, coeffs, N); } +static void test_lfe_x96_fixed(const DCADSPContext *dca) +{ + LOCAL_ALIGNED_16(int32_t, dst0, [2 * BUF_SIZE]); + LOCAL_ALIGNED_16(int32_t, dst1, [2 * BUF_SIZE]); + LOCAL_ALIGNED_16(int32_t, src, [BUF_SIZE]); + int32_t hist0, hist1; + + declare_func(void, int32_t *dst, const int32_t *src, int32_t *hist, ptrdiff_t len); + + if (check_func(dca->lfe_x96_fixed, "lfe_x96_fixed")) { + randomize(src, BUF_SIZE); + hist0 = hist1 = (int16_t)rnd(); + call_ref(dst0, src, &hist0, BUF_SIZE); + call_new(dst1, src, &hist1, BUF_SIZE); + if (memcmp(dst0, dst1, 2 * BUF_SIZE * sizeof(int32_t))) + fail(); + bench_new(dst1, src, &hist1, BUF_SIZE); + } +} + void checkasm_check_dcadsp(void) { DCADSPContext dca; @@ -98,4 +118,7 @@ void checkasm_check_dcadsp(void) if (check_func(dca.lfe_fir_fixed, "lfe_fir_fixed")) test_lfe_fir_fixed(); report("lfe_fir_fixed"); + + test_lfe_x96_fixed(&dca); + report("lfe_x96_fixed"); } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
