summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-03-27 13:56:35 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-03-29 12:48:45 -0700
commit01665262e50162e858c45f92a8a7e12b953e56ad (patch)
treec07b520eed0f37d6d9135e54b68e5634a6f07956 /ir.h
parent53afc3609db0afffacb1c40975ec7d87b9e3c7cd (diff)
Implement exp2() and log2(), and make ir_unop_exp and ir_unop_log be base e.
Making the base e functions IR operations is not a clear win. i965 doesn't support it, it doesn't look like r600 supports it, but r500 does. It should be easily supportable as a lowering pass, though.
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir.h b/ir.h
index 4590528948..600a2cd78d 100644
--- a/ir.h
+++ b/ir.h
@@ -228,6 +228,8 @@ enum ir_expression_operation {
ir_unop_sqrt,
ir_unop_exp,
ir_unop_log,
+ ir_unop_exp2,
+ ir_unop_log2,
ir_unop_f2i, /**< Float-to-integer conversion. */
ir_unop_i2f, /**< Integer-to-float conversion. */
ir_unop_u2f, /**< Unsigned-to-float conversion. */