diff options
author | Show Liu <show.liu@linaro.org> | 2015-07-03 11:34:19 +0800 |
---|---|---|
committer | Gil Pitney <gil.pitney@linaro.org> | 2015-07-14 03:11:28 +0000 |
commit | 43ff8522510ec23773c8aae9b8b21da9c7b7123f (patch) | |
tree | a7477d3a33e5cee992add21fc3d90c834841fa1a | |
parent | f7d715248dc6e5e8224d1f161d61e551df111377 (diff) |
fixed the crash issue for convert builtin function
GP: Amended to include cpu.h instead of clc.h, which defines abs() in
terms of __builtin_abs().
-rw-r--r-- | src/builtins/convert.cl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/builtins/convert.cl b/src/builtins/convert.cl index 2f47c2d..3dbaf5e 100644 --- a/src/builtins/convert.cl +++ b/src/builtins/convert.cl @@ -27,7 +27,7 @@ THE SOFTWARE. */ -#include "clc.h" +#include "cpu.h" #ifdef cl_khr_fp64 #pragma OPENCL EXTENSION cl_khr_fp64 : enable @@ -3639,7 +3639,7 @@ double3 convert_double3(double3 x) #endif -#if 0 // ASW +#if 1 // ASW _CLC_DEF _CLC_OVERLOAD char convert_char_rtz(char x) @@ -12823,7 +12823,7 @@ _CLC_DEF _CLC_OVERLOAD ulong3 convert_ulong3_rtn(ulong3 x) { return (ulong3)(convert_ulong2(x.s01), convert_ulong(x.s2)); -t +} #endif _CLC_DEF _CLC_OVERLOAD char convert_char_sat(char x) |