]> git.sesse.net Git - ffmpeg/blobdiff - tests/checkasm/checkasm.c
Merge commit '87a051f97633010f71dfc1d23d806856499bf231'
[ffmpeg] / tests / checkasm / checkasm.c
index 4eb14ddec452f0e78b23f1f04a8eef382e6cc577..5fdf0a3cb60618e6ba5509556b13601679838f71 100644 (file)
@@ -65,6 +65,9 @@ static const struct {
 #endif
 #if CONFIG_H264QPEL
     { "h264qpel", checkasm_check_h264qpel },
+#endif
+#if CONFIG_V210_ENCODER
+    { "v210enc", checkasm_check_v210enc },
 #endif
     { NULL }
 };
@@ -111,7 +114,7 @@ static const struct {
 
 typedef struct CheckasmFuncVersion {
     struct CheckasmFuncVersion *next;
-    intptr_t (*func)();
+    void *func;
     int ok;
     int cpu;
     int iterations;
@@ -387,10 +390,10 @@ int main(int argc, char *argv[])
 /* Decide whether or not the specified function needs to be tested and
  * allocate/initialize data structures if needed. Returns a pointer to a
  * reference function if the function should be tested, otherwise NULL */
-intptr_t (*checkasm_check_func(intptr_t (*func)(), const char *name, ...))()
+void *checkasm_check_func(void *func, const char *name, ...)
 {
     char name_buf[256];
-    intptr_t (*ref)() = func;
+    void *ref = func;
     CheckasmFuncVersion *v;
     int name_length;
     va_list arg;