summaryrefslogtreecommitdiff
path: root/tests/checkasm/bswapdsp.c
diff options
context:
space:
mode:
authorHenrik Gramner <henrik@gramner.com>2015-08-20 17:06:21 +0200
committerAnton Khirnov <anton@khirnov.net>2015-08-20 19:22:34 +0200
commit515b69f8f8e9a24cfaee95d8c1f63f265d8582fe (patch)
tree1557dcac028fa877745a1ad9c045df339047cf05 /tests/checkasm/bswapdsp.c
parente13da244f41610ee073b2f72bcf62b60fa402bb5 (diff)
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>
Diffstat (limited to 'tests/checkasm/bswapdsp.c')
-rw-r--r--tests/checkasm/bswapdsp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/checkasm/bswapdsp.c b/tests/checkasm/bswapdsp.c
index 748a886ec9..829ebaa8a8 100644
--- a/tests/checkasm/bswapdsp.c
+++ b/tests/checkasm/bswapdsp.c
@@ -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(); \