[Beignet] [PATCH] Add some native functions vector proto.
Zhigang Gong
zhigang.gong at linux.intel.com
Sun Jan 26 01:15:48 PST 2014
Pushed, thanks.
On Fri, Jan 17, 2014 at 04:22:56PM +0800, Yang Rong wrote:
> 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
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list