From 44e0522c09a8338101a26f471b4abae96feb7a8d Mon Sep 17 00:00:00 2001 From: Jan Vesely Date: Thu, 18 Jan 2018 21:12:06 +0000 Subject: half_divide: Implement using x/y Passes CTS on carrizo v2: Use full precision implementation Reviewer: Jeroen Ketema Signed-off-by: Jan Vesely llvm-svn: 322899 --- libclc/generic/lib/math/half_binary.inc | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libclc/generic/lib/math/half_binary.inc (limited to 'libclc/generic/lib/math/half_binary.inc') diff --git a/libclc/generic/lib/math/half_binary.inc b/libclc/generic/lib/math/half_binary.inc new file mode 100644 index 00000000000..f831b530b4b --- /dev/null +++ b/libclc/generic/lib/math/half_binary.inc @@ -0,0 +1,9 @@ +#include + +#define __CLC_HALF_FUNC(x) __CLC_CONCAT(half_, x) + +_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __CLC_HALF_FUNC(__CLC_FUNC)(__CLC_GENTYPE x, __CLC_GENTYPE y) { + return __CLC_FUNC(x, y); +} + +#undef __CLC_HALF_FUNC -- cgit v1.2.3