Handbook
Glossary
ptx-operand? ( object -- ? )
Vocabulary
cuda
.
ptx
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
ptx-operand
class.
Definition
USING:
classes.tuple.private
kernel
kernel.private
math.private
slots.private
;
IN:
cuda.ptx
:
ptx-operand?
( object -- ? )
dup
tag
1
swap
fixnum-shift-fast
41
fixnum-bitand
0
eq?
not
[
drop
t
]
[
dup
dup
tuple?
[
layout-of
7
slot
dup
\
ptx-indirect
eq?
[
drop
t
]
[
dup
\
ptx-vector
eq?
[
drop
t
]
[
\
ptx-negation
eq?
]
if
]
if
]
[
drop
f
]
if
[
drop
t
]
[
ptx-var?
]
if
]
if
;