From: Yang Rong Date: Fri, 17 Jan 2014 08:22:56 +0000 (+0800) Subject: Add some native functions vector proto. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df96397b9f8abdb682e658669de92a62b785ba38;p=contrib%2Fbeignet.git Add some native functions vector proto. 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 Reviewed-by: Zhigang Gong --- 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)