summaryrefslogtreecommitdiff
path: root/generic/include/clc/math/binary_decl.inc
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-02-07 12:54:34 -0500
committerTom Stellard <thomas.stellard@amd.com>2013-02-11 16:16:57 +0000
commit418ed96817e354a167ea0ba47aa299231058470c (patch)
treeedb1fe9dc287cba8b06c7a097e6974ccb637011a /generic/include/clc/math/binary_decl.inc
parent4f884eacb4fb9aa2c115cb8ef4d682290c27e7d5 (diff)
Implement fmax() and fmin() builtins
Diffstat (limited to 'generic/include/clc/math/binary_decl.inc')
-rw-r--r--generic/include/clc/math/binary_decl.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/generic/include/clc/math/binary_decl.inc b/generic/include/clc/math/binary_decl.inc
new file mode 100644
index 0000000..1a49e26
--- /dev/null
+++ b/generic/include/clc/math/binary_decl.inc
@@ -0,0 +1,6 @@
+_CLC_OVERLOAD _CLC_DECL GENTYPE FUNCTION(GENTYPE a, GENTYPE b);
+_CLC_OVERLOAD _CLC_DECL GENTYPE FUNCTION(GENTYPE a, float b);
+
+#ifdef cl_khr_fp64
+_CLC_OVERLOAD _CLC_DECL GENTYPE FUNCTION(GENTYPE a, double b);
+#endif