Handbook
Glossary
%convert-integer ( dst src c-type -- )
Vocabulary
cpu
.
architecture
Inputs
dst
an
object
src
an
object
c-type
an
object
Outputs
None
Definition
USING:
system
;
IN:
cpu.architecture
HOOK:
%convert-integer
cpu
( dst src c-type -- )
Methods
USING:
cpu.architecture
kernel
system
;
M:
arm.64
%convert-integer
3drop
;
USING:
alien.c-types
combinators
cpu.architecture
cpu.x86
kernel
system
;
M:
x86
%convert-integer
{
{
char
[
8
%sign-extend
]
}
{
uchar
[
8
%zero-extend
]
}
{
short
[
16
%sign-extend
]
}
{
ushort
[
16
%zero-extend
]
}
{
int
[
32
%sign-extend
]
}
{
uint
[
32
[
2drop
]
(%convert-integer)
]
}
}
case
;