nir: fix documentation for uadd_carry and usub_borry opcodes
These opcodes where fixed to return an integer instead of a boolean
value some time ago but the documentation for them was not updated
and still talked about a boolean result.
Fixes: b0d4ee520
('nir/opcodes: Fix up uadd_carry and usub_borrow')
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17372>
This commit is contained in:
parent
1b6c74c48d
commit
84a0dca9df
|
@ -763,13 +763,13 @@ binop("fdiv", tfloat, "", "src0 / src1")
|
|||
binop("idiv", tint, "", "src1 == 0 ? 0 : (src0 / src1)")
|
||||
binop("udiv", tuint, "", "src1 == 0 ? 0 : (src0 / src1)")
|
||||
|
||||
# returns a boolean representing the carry resulting from the addition of
|
||||
# the two unsigned arguments.
|
||||
# returns an integer (1 or 0) representing the carry resulting from the
|
||||
# addition of the two unsigned arguments.
|
||||
|
||||
binop_convert("uadd_carry", tuint, tuint, _2src_commutative, "src0 + src1 < src0")
|
||||
|
||||
# returns a boolean representing the borrow resulting from the subtraction
|
||||
# of the two unsigned arguments.
|
||||
# returns an integer (1 or 0) representing the borrow resulting from the
|
||||
# subtraction of the two unsigned arguments.
|
||||
|
||||
binop_convert("usub_borrow", tuint, tuint, "", "src0 < src1")
|
||||
|
||||
|
|
Loading…
Reference in New Issue