diff options
author | Niklas Haas <[email protected]> | 2025-04-08 20:43:50 +0200 |
---|---|---|
committer | Niklas Haas <[email protected]> | 2025-09-01 19:27:53 +0200 |
commit | 8406c56b0cb36e8aed56628d03702f90019f104d (patch) | |
tree | 656ba9e16c403b3eebcb7f8e54f91738c6c71f25 /tests/checkasm/checkasm.h | |
parent | faf62cbdf5df78884c47b57aac74df3461052974 (diff) |
tests/checkasm: generalize DEF_CHECKASM_CHECK_FUNC to floats
We split the standard macro into its body (implementation) and declaration,
and use a macro argument in place of the raw `memcmp` call, with the major
difference that we now take the number of pixels to compare instead of the
number of bytes (to match the signature of float_near_ulp_array).
Diffstat (limited to 'tests/checkasm/checkasm.h')
-rw-r--r-- | tests/checkasm/checkasm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/checkasm/checkasm.h b/tests/checkasm/checkasm.h index 375ad2d930..714afd1dc5 100644 --- a/tests/checkasm/checkasm.h +++ b/tests/checkasm/checkasm.h @@ -426,6 +426,13 @@ DECL_CHECKASM_CHECK_FUNC(uint32_t); DECL_CHECKASM_CHECK_FUNC(int16_t); DECL_CHECKASM_CHECK_FUNC(int32_t); +int checkasm_check_float_ulp(const char *file, int line, + const float *buf1, ptrdiff_t stride1, + const float *buf2, ptrdiff_t stride2, + int w, int h, const char *name, + unsigned max_ulp, int align_w, int align_h, + int padding); + #define PASTE(a,b) a ## b #define CONCAT(a,b) PASTE(a,b) |