summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/math/half_divide.cl
diff options
context:
space:
mode:
Diffstat (limited to 'libclc/generic/lib/math/half_divide.cl')
-rw-r--r--libclc/generic/lib/math/half_divide.cl9
1 files changed, 9 insertions, 0 deletions
diff --git a/libclc/generic/lib/math/half_divide.cl b/libclc/generic/lib/math/half_divide.cl
new file mode 100644
index 00000000000..ee9c895a988
--- /dev/null
+++ b/libclc/generic/lib/math/half_divide.cl
@@ -0,0 +1,9 @@
+#include <clc/clc.h>
+
+#define divide(x,y) (x/y)
+
+#define __CLC_FUNC divide
+#define __CLC_BODY <half_binary.inc>
+#define __FLOAT_ONLY
+#include <clc/math/gentype.inc>
+#undef divide
OpenPOWER on IntegriCloud