Add some native functions vector proto.
authorYang Rong <rong.r.yang@intel.com>
Fri, 17 Jan 2014 08:22:56 +0000 (16:22 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Mon, 20 Jan 2014 00:37:59 +0000 (08:37 +0800)
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@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/builtin_vector_proto.def

index de816ce..4393ad5 100644 (file)
@@ -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)