From 01665262e50162e858c45f92a8a7e12b953e56ad Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sat, 27 Mar 2010 13:56:35 -0700 Subject: 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. --- ir.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ir.h') 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. */ -- cgit v1.2.3