checkasm: Explicitly declare function prototypes
Now we no longer have to rely on function pointers intentionally declared without specified argument types. This makes it easier to support functions with floating point parameters or return values as well as functions returning 64-bit values on 32-bit architectures. It also avoids having to explicitly cast strides to ptrdiff_t for example. Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
committed by
Anton Khirnov
parent
e13da244f4
commit
515b69f8f8
@@ -43,6 +43,8 @@
|
||||
#define check_bswap(type) \
|
||||
do { \
|
||||
int w; \
|
||||
declare_func(void, type *dst, const type *src, int w); \
|
||||
\
|
||||
for (w = 0; w < BUF_SIZE / sizeof(type); w++) { \
|
||||
int offset = (BUF_SIZE / sizeof(type) - w) & 15; /* Test various alignments */ \
|
||||
randomize_buffers(); \
|
||||
|
||||
Reference in New Issue
Block a user