summaryrefslogtreecommitdiff
path: root/tests/checkasm/x86
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/x86
parent99b9f0136c6e2d80c5ce2fc3c4125605035e11cb (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.
Diffstat (limited to 'tests/checkasm/x86')
-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 82d4076332..377fd373c0 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
@@ -162,7 +162,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