diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-01-23 21:06:49 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-01-24 00:42:13 +0100 |
commit | d6c62b4bce8f9ae5f09a8acaf446c1a8231bca55 (patch) | |
tree | 458871fa4f461d8a897b04bc9667eac6fe79117d | |
parent | 88a9142cac25a365cde0b396cca1987eca68ccb2 (diff) | |
download | ffmpeg-d6c62b4bce8f9ae5f09a8acaf446c1a8231bca55.tar.gz |
tests/checkasm/aacencdsp: Use float_near_ulp_array() for abs_pow34() test
Fixes: ticket/10818
Approved-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | tests/checkasm/aacencdsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |