Handbook
Glossary
ptx-float-env? ( object -- ? )
Vocabulary
cuda
.
ptx
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
ptx-float-env
class.
Definition
USING:
classes.tuple.private
kernel
math.private
slots.private
;
IN:
cuda.ptx
:
ptx-float-env?
( object -- ? )
dup
tuple?
[
layout-of
dup
dup
1
slot
15
fixnum>=
[
15
slot
dup
\
sub
eq?
[
drop
t
]
[
dup
\
mul
eq?
[
drop
t
]
[
dup
\
mad
eq?
[
drop
t
]
[
dup
\
fma
eq?
~quotation~ ~curried~
if
]
if
]
if
]
if
]
[
drop
f
]
if
[
drop
t
]
[
dup
1
slot
13
fixnum>=
[
13
slot
dup
\
sqrt
eq?
[
drop
t
]
[
dup
\
sin
eq?
[
drop
t
]
[
dup
\
rsqrt
eq?
~quotation~ ~quotation~
if
]
if
]
if
]
[
drop
f
]
if
]
if
]
[
drop
f
]
if
;