[Beignet] [PATCH] Add some native functions vector proto.

Yang Rong rong.r.yang at intel.com
Fri Jan 17 00:22:56 PST 2014


Native functions just define as normal function before, so don't need
vector proto. Now only native_exp2 and native_sqrt define as exp2 and sqrt,
so enable others'.

Signed-off-by: Yang Rong <rong.r.yang at intel.com>
---
 backend/src/builtin_vector_proto.def | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/backend/src/builtin_vector_proto.def b/backend/src/builtin_vector_proto.def
index de816ce..4393ad5 100644
--- a/backend/src/builtin_vector_proto.def
+++ b/backend/src/builtin_vector_proto.def
@@ -147,20 +147,20 @@ gentype trunc (gentype)
 
 # XXX we already defined all native and non-native
 # functions to the same one.
-#gentype native_cos (gentype x)
-#gentype native_divide (gentype x, gentype y)
-#gentype native_exp (gentype x)
+gentype native_cos (gentype x)
+gentype native_divide (gentype x, gentype y)
+gentype native_exp (gentype x)
 #gentype native_exp2 (gentype x)
-#gentype native_exp10 (gentype x)
-#gentype native_log (gentype x)
-#gentype native_log2 (gentype x)
-#gentype native_log10 (gentype x)
-#gentype native_powr (gentype x, gentype y)
+gentype native_exp10 (gentype x)
+gentype native_log (gentype x)
+gentype native_log2 (gentype x)
+gentype native_log10 (gentype x)
+gentype native_powr (gentype x, gentype y)
 gentype native_recip (gentype x)
-#gentype native_rsqrt (gentype x)
-#gentype native_sin (gentype x)
+gentype native_rsqrt (gentype x)
+gentype native_sin (gentype x)
 #gentype native_sqrt (gentype x)
-#gentype native_tan (gentype x)
+gentype native_tan (gentype x)
 
 ##integer
 ugentype abs (gentype x)
-- 
1.8.3.2



More information about the Beignet mailing list