summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-02-07 17:18:15 -0500
committerTom Stellard <thomas.stellard@amd.com>2013-02-11 16:16:57 +0000
commit5a138e1933b9a22d567f79cc6699f633158f297a (patch)
tree1be4b2d1dcebf57f84723e652c2bf6bfba7e1a24
parent418ed96817e354a167ea0ba47aa299231058470c (diff)
Implement ceil() builtin
-rw-r--r--generic/include/clc/clc.h1
-rw-r--r--generic/include/clc/math/ceil.h6
2 files changed, 7 insertions, 0 deletions
diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h
index c917a46..4394c9e 100644
--- a/generic/include/clc/clc.h
+++ b/generic/include/clc/clc.h
@@ -33,6 +33,7 @@
/* 6.11.2 Math Functions */
#include <clc/math/cos.h>
+#include <clc/math/ceil.h>
#include <clc/math/exp.h>
#include <clc/math/exp2.h>
#include <clc/math/fabs.h>
diff --git a/generic/include/clc/math/ceil.h b/generic/include/clc/math/ceil.h
new file mode 100644
index 0000000..b8e4b08
--- /dev/null
+++ b/generic/include/clc/math/ceil.h
@@ -0,0 +1,6 @@
+#undef ceil
+#define ceil __clc_ceil
+
+#define FUNCTION __clc_ceil
+#define INTRINSIC "llvm.ceil"
+#include <clc/math/unary_intrin.inc>