diff options
author | Matt Turner <[email protected]> | 2013-09-19 12:56:10 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-10-07 10:41:16 -0700 |
commit | 499d7a7f6e47403a4a3da448eddaf15bdf56395c (patch) | |
tree | 2fa4bb92dd8d52622ead91fb7c2880c069cc7144 /src/glsl/ir_builder.h | |
parent | ae514416b20e0117d58822253069f594b4a3ee57 (diff) |
glsl: Add ir_binop_carry and ir_binop_borrow.
Calculates the carry out of the addition of two values and the
borrow from subtraction respectively. Will be used in uaddCarry() and
usubBorrow() built-in implementations.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ir_builder.h')
-rw-r--r-- | src/glsl/ir_builder.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/ir_builder.h b/src/glsl/ir_builder.h index 6a5f771193b..1345788ab13 100644 --- a/src/glsl/ir_builder.h +++ b/src/glsl/ir_builder.h @@ -134,6 +134,8 @@ ir_expression *add(operand a, operand b); ir_expression *sub(operand a, operand b); ir_expression *mul(operand a, operand b); ir_expression *div(operand a, operand b); +ir_expression *carry(operand a, operand b); +ir_expression *borrow(operand a, operand b); ir_expression *round_even(operand a); ir_expression *dot(operand a, operand b); ir_expression *dotlike(operand a, operand b); |