summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/math/clc_sw_unary.inc
diff options
context:
space:
mode:
Diffstat (limited to 'libclc/generic/lib/math/clc_sw_unary.inc')
-rw-r--r--libclc/generic/lib/math/clc_sw_unary.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/libclc/generic/lib/math/clc_sw_unary.inc b/libclc/generic/lib/math/clc_sw_unary.inc
index 0f8467c0a1c..cd148b07a02 100644
--- a/libclc/generic/lib/math/clc_sw_unary.inc
+++ b/libclc/generic/lib/math/clc_sw_unary.inc
@@ -2,8 +2,11 @@
#define __CLC_SW_FUNC(x) __CLC_CONCAT(__clc_, x)
+// TODO: Enable half precision when the sw routine is implemented
+#if __CLC_FPSIZE > 16
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __CLC_FUNC(__CLC_GENTYPE x) {
return __CLC_SW_FUNC(__CLC_FUNC)(x);
}
+#endif
#undef __CLC_SW_FUNC
OpenPOWER on IntegriCloud