From d6c62b4bce8f9ae5f09a8acaf446c1a8231bca55 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 23 Jan 2024 21:06:49 +0100 Subject: [PATCH] tests/checkasm/aacencdsp: Use float_near_ulp_array() for abs_pow34() test Fixes: ticket/10818 Approved-by: James Almer Signed-off-by: Michael Niedermayer --- tests/checkasm/aacencdsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/checkasm/aacencdsp.c b/tests/checkasm/aacencdsp.c index 684c775862..6fc22047c3 100644 --- a/tests/checkasm/aacencdsp.c +++ b/tests/checkasm/aacencdsp.c @@ -51,7 +51,7 @@ static void test_abs_pow34(AACEncContext *s) { call_ref(out, in, BUF_SIZE); call_new(out2, in, BUF_SIZE); - if (memcmp(out, out2, BUF_SIZE * sizeof(float)) != 0) + if (!float_near_ulp_array(out, out2, 1, BUF_SIZE)) fail(); bench_new(out, in, BUF_SIZE);