|
checkasm 1.0.1
Assembly testing and benchmarking framework
|
Functions and macros for comparing multi-dimensional buffers. More...

Macros | |
| #define | CHECKASM_ALIGN(x) |
| Declare a variable with platform-specific alignment requirements. | |
| #define | checkasm_check(type, ...) |
| Compare two 2D buffers and fail test if different. | |
| #define | checkasm_check_padded(type, ...) |
| Compare two 2D buffers, including padding regions (detect over-write). | |
Functions and macros for comparing multi-dimensional buffers.
These utilities compare 2D buffers (with stride support) and detect differences, including in padding regions. Used to verify that optimized implementations produce bit-identical output to reference implementations.
| #define CHECKASM_ALIGN | ( | x | ) |
Declare a variable with platform-specific alignment requirements.
| x | Variable declaration |
| #define checkasm_check | ( | type, | |
| ... ) |
Compare two 2D buffers and fail test if different.
| type | Element type (e.g., uint8_t, int, float) |
| buf1 | First buffer pointer to compare |
| stride1 | First buffer stride in bytes |
| buf2 | Second buffer pointer to compare |
| stride2 | Second buffer stride in bytes |
| w | Width of the buffers in elements |
| h | Height of the buffers in lines |
| name | Name of the buffer (for error reporting) |
| ... | Extra parameters (e.g. max_ulp for checkasm_check(float_ulp, ...)) |
| #define checkasm_check_padded | ( | type, | |
| ... ) |
Compare two 2D buffers, including padding regions (detect over-write).
| type | Element type (e.g., uint8_t, int, float) |
| buf1 | First buffer pointer to compare |
| stride1 | First buffer stride in bytes |
| buf2 | Second buffer pointer to compare |
| stride2 | Second buffer stride in bytes |
| w | Width of the buffers in elements |
| h | Height of the buffers in lines |
| name | Name of the buffer (for error reporting) |
| ... | Extra parameters (e.g. max_ulp for checkasm_check(float_ulp, ...)) |
| align_w | Horizontal alignment of the allowed over-write (elements) |
| align_h | Vertical alignment of the allowed over-write (lines) |
| padding | Number of extra elements/lines of padding to check (past the alignment boundaries) |