aboutsummaryrefslogtreecommitdiffstats
path: root/tests/checkasm/bswapdsp.c
diff options
context:
space:
mode:
authorHenrik Gramner <henrik@gramner.com>2015-08-16 13:00:21 +0200
committerHenrik Gramner <henrik@gramner.com>2015-08-19 16:17:35 +0200
commit18b101ff595c7f18e9571d26f8840f556b24ec03 (patch)
treef13145d96afd2d8d300ee4262ec7e9136a9d98a3 /tests/checkasm/bswapdsp.c
parent99b9f0136c6e2d80c5ce2fc3c4125605035e11cb (diff)
downloadffmpeg-18b101ff595c7f18e9571d26f8840f556b24ec03.tar.gz
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.
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 b93c5bd1e0..5f7555037d 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(); \