Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mkcl
mkcl
Commits
ca82b8da
Commit
ca82b8da
authored
May 08, 2020
by
Jean-Claude Beaudoin
Browse files
Stub out left over 'asm' directives.
parent
a13fd954
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/c/arch/ffi_aarch64.d
View file @
ca82b8da
...
...
@@ -367,8 +367,16 @@ mkcl_dynamic_callback_execute(long i1, long i2, long i3, long i4, long i5, long
case
MKCL_FFI_POINTER_VOID
:
case
MKCL_FFI_CSTRING
:
case
MKCL_FFI_OBJECT
:
val
=
output
.
ul
;
break
;
case
MKCL_FFI_DOUBLE
:
asm
(
"movsd (%0),%%xmm0"
::
"a"
(&
output
.
d
));
break
;
case
MKCL_FFI_FLOAT
:
asm
(
"movss (%0),%%xmm0"
::
"a"
(&
output
.
f
));
break
;
case
MKCL_FFI_DOUBLE
:
#
if
0
/* this code is x86_64 legacy. */
asm
(
"movsd (%0),%%xmm0"
::
"a"
(&
output
.
d
));
#
endif
break
;
case
MKCL_FFI_FLOAT
:
#
if
0
/* this code is x86_64 legacy. */
asm
(
"movss (%0),%%xmm0"
::
"a"
(&
output
.
f
));
#
endif
break
;
case
MKCL_FFI_VOID
:
break
;
default
:
mkcl_FEerror
(
env
,
"Invalid C callback function return type"
,
0
);
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment