Should return float, but long. Correct it. Signed-off-by: Yang Rong <rong.r.y...@intel.com> --- backend/src/gen_convert.sh | 4 ++-- backend/src/ocl_convert.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/backend/src/gen_convert.sh b/backend/src/gen_convert.sh index 0aafc3f..f0562a7 100755 --- a/backend/src/gen_convert.sh +++ b/backend/src/gen_convert.sh @@ -350,7 +350,7 @@ INLINE_OVERLOADABLE float __convert_float_rtn(int x) } return u.f; } -INLINE_OVERLOADABLE long __convert_float_rtz(uint x) +INLINE_OVERLOADABLE float __convert_float_rtz(uint x) { union { uint u; @@ -362,7 +362,7 @@ INLINE_OVERLOADABLE long __convert_float_rtz(uint x) u.u -= 1; return u.f; } -INLINE_OVERLOADABLE long __convert_float_rtp(uint x) +INLINE_OVERLOADABLE float __convert_float_rtp(uint x) { union { uint u; diff --git a/backend/src/ocl_convert.h b/backend/src/ocl_convert.h index 9ef8bd0..7ec2aec 100644 --- a/backend/src/ocl_convert.h +++ b/backend/src/ocl_convert.h @@ -3920,7 +3920,7 @@ INLINE_OVERLOADABLE float __convert_float_rtn(int x) } return u.f; } -INLINE_OVERLOADABLE long __convert_float_rtz(uint x) +INLINE_OVERLOADABLE float __convert_float_rtz(uint x) { union { uint u; @@ -3932,7 +3932,7 @@ INLINE_OVERLOADABLE long __convert_float_rtz(uint x) u.u -= 1; return u.f; } -INLINE_OVERLOADABLE long __convert_float_rtp(uint x) +INLINE_OVERLOADABLE float __convert_float_rtp(uint x) { union { uint u; -- 1.8.1.2 _______________________________________________ Beignet mailing list Beignet@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/beignet