summaryrefslogtreecommitdiff
path: root/tests/checkasm/x86/checkasm.asm
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/x86/checkasm.asm
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/x86/checkasm.asm')
-rw-r--r--tests/checkasm/x86/checkasm.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/checkasm/x86/checkasm.asm b/tests/checkasm/x86/checkasm.asm
index 20d11bc5c8..4948fc9e26 100644
--- a/tests/checkasm/x86/checkasm.asm
+++ b/tests/checkasm/x86/checkasm.asm
@@ -82,7 +82,7 @@ cglobal stack_clobber, 1,2
%endif
;-----------------------------------------------------------------------------
-; intptr_t checkasm_checked_call(intptr_t (*func)(), ...)
+; void checkasm_checked_call(void *func, ...)
;-----------------------------------------------------------------------------
INIT_XMM
cglobal checked_call, 2,15,16,max_args*8+8
@@ -167,7 +167,7 @@ cglobal checked_call, 2,15,16,max_args*8+8
%define n6 dword 0x33627ba7
;-----------------------------------------------------------------------------
-; intptr_t checkasm_checked_call(intptr_t (*func)(), ...)
+; void checkasm_checked_call(void *func, ...)
;-----------------------------------------------------------------------------
cglobal checked_call, 1,7
mov r3, n3