ptx-op? ( object -- ? )


Vocabulary
cuda.ptx

Inputs and outputs
objectan object
?a boolean


Word description
Tests if the object is an instance of the ptx-op class.

Definition


: ptx-op? ( object -- ? )
dup .popc?
[ drop t ] [
dup .max?
[ drop t ] [
dup .min?
[ drop t ] [
dup .dec?
[ drop t ] [
dup .inc?
[ drop t ]
[ dup .add? ~quotation~ ~quotation~ if ] if
] if
] if
] if
] if ;