summaryrefslogtreecommitdiff
path: root/generic/include/clc/math/fmax.h
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-06-26 18:20:25 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-06-26 18:20:25 +0000
commit0fd3463974cf8b2aad009ee97dd240222ffd7065 (patch)
tree57cdf2e22d9e486e8e6bd9c2dc278b9d7fc00807 /generic/include/clc/math/fmax.h
parentb08be4f10886231672844974d8671ddd47276dc7 (diff)
Implement fmax() and fmin() builtins
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@184987 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'generic/include/clc/math/fmax.h')
-rw-r--r--generic/include/clc/math/fmax.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/generic/include/clc/math/fmax.h b/generic/include/clc/math/fmax.h
new file mode 100644
index 0000000..d26e5d6
--- /dev/null
+++ b/generic/include/clc/math/fmax.h
@@ -0,0 +1,11 @@
+#undef fmax
+#define fmax __clc_fmax
+
+#define BODY <clc/math/binary_decl.inc>
+#define FUNCTION __clc_fmax
+
+#include <clc/math/gentype.inc>
+
+#undef BODY
+#undef FUNCTION
+