From bda953750f49c2194b0f24307fe7a48f2cf59c65 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Wed, 24 Jul 2013 11:09:06 +0800 Subject: [PATCH] Frexp support global memory directly Signed-off-by: Zhigang Gong --- kernels/builtin_frexp.cl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernels/builtin_frexp.cl b/kernels/builtin_frexp.cl index 3d33a14..766695a 100644 --- a/kernels/builtin_frexp.cl +++ b/kernels/builtin_frexp.cl @@ -1,6 +1,4 @@ kernel void builtin_frexp(global float *src, global float *dst, global int *e) { int i = get_global_id(0); - int v; - dst[i] = frexp(src[i], &v); - e[i] = v; + dst[i] = frexp(src[i], &e[i]); } -- 2.7.4