compare in cuda ptx isa

comparitions in cuda ptx

integer

meaning signed op unsigned op bit-size op
a == b eq eq eq
a != b ne ne ne
a < b lt lo
a <= b le ls
a > b gt hi
a >= b ge hi

floating

If either operand is NaN, the result is False

meaning Floating-Point Operator
a == b && !isNaN(a) && !isNaN(b) eq
a != b && !isNaN(a) && !isNaN(b) ne
a < b && !isNaN(a) && !isNaN(b) lt
a <= b && !isNaN(a) && !isNaN(b) le
a > b && !isNaN(a) && !isNaN(b) gt
a >= b && !isNaN(a) && !isNaN(b) ge

发表评论

电子邮件地址不会被公开。 必填项已用*标注