directly use __gen_ocl_rnde

Signed-off-by: Homer Hsing <homer.x...@intel.com>
---
 backend/src/ocl_stdlib.tmpl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/src/ocl_stdlib.tmpl.h b/backend/src/ocl_stdlib.tmpl.h
index 038cf1c..62f5f78 100644
--- a/backend/src/ocl_stdlib.tmpl.h
+++ b/backend/src/ocl_stdlib.tmpl.h
@@ -1558,7 +1558,7 @@ INLINE_OVERLOADABLE float powr(float x, float y) { return 
__gen_ocl_pow(x,y); }
 INLINE_OVERLOADABLE float fmod(float x, float y) { return 
x-y*__gen_ocl_rndz(x/y); }
 INLINE_OVERLOADABLE float remainder(float x, float y) { return 
x-y*__gen_ocl_rnde(x/y); }
 INLINE_OVERLOADABLE float __gen_ocl_internal_rint(float x) {
-  return 2 * __gen_ocl_internal_round(x / 2);
+  return __gen_ocl_rnde(x);
 }
 // TODO use llvm intrinsics definitions
 #define cos native_cos
-- 
1.8.3.2

_______________________________________________
Beignet mailing list
Beignet@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to