checkasm: Explicitly declare function prototypes
[ffmpeg.git] / tests / checkasm / bswapdsp.c
index 3871029..829ebaa 100644 (file)
@@ -22,6 +22,7 @@
 #include "checkasm.h"
 #include "libavcodec/bswapdsp.h"
 #include "libavutil/common.h"
+#include "libavutil/internal.h"
 #include "libavutil/intreadwrite.h"
 
 #define BUF_SIZE 512
@@ -42,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();                                                           \
 
 void checkasm_check_bswapdsp(void)
 {
-    DECLARE_ALIGNED(16, uint8_t, src0)[BUF_SIZE];
-    DECLARE_ALIGNED(16, uint8_t, src1)[BUF_SIZE];
-    DECLARE_ALIGNED(16, uint8_t, dst0)[BUF_SIZE];
-    DECLARE_ALIGNED(16, uint8_t, dst1)[BUF_SIZE];
+    LOCAL_ALIGNED_16(uint8_t, src0, [BUF_SIZE]);
+    LOCAL_ALIGNED_16(uint8_t, src1, [BUF_SIZE]);
+    LOCAL_ALIGNED_16(uint8_t, dst0, [BUF_SIZE]);
+    LOCAL_ALIGNED_16(uint8_t, dst1, [BUF_SIZE]);
     BswapDSPContext h;
 
     ff_bswapdsp_init(&h);