Handbook
Glossary
immediate-comparand? ( n -- ? )
CPU architecture description model
Prev:
immediate-bitwise? ( n -- ? )
Next:
immediate-store? ( n -- ? )
Vocabulary
cpu
.
architecture
Inputs
n
a
number
Outputs
?
a
boolean
Word description
Can this value be an immediate operand for %compare-imm or %compare-imm-branch?
Definition
USING:
system
;
IN:
cpu.architecture
HOOK:
immediate-comparand?
cpu
( n -- ? )
Methods
USING:
cpu.architecture
kernel
system
;
M:
arm.64
immediate-comparand?
drop
f
;
USING:
combinators
cpu.architecture
kernel
layouts
math
;
M:
object
immediate-comparand?
{
{
[
dup
fixnum?
]
[
tag-fixnum
immediate-arithmetic?
]
}
{
[
dup
not
]
[
drop
t
]
}
[
drop
f
]
}
cond
;