[libclc] 43/291: Implement ceil() builtin
Andreas Beckmann
anbe at moszumanska.debian.org
Tue Sep 8 10:53:31 UTC 2015
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch master
in repository libclc.
commit b77eb2d4a7c4d59793ec33752cb1d5ca573b793d
Author: Tom Stellard <thomas.stellard at amd.com>
Date: Wed Jun 26 18:20:30 2013 +0000
Implement ceil() builtin
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@184988 91177308-0d34-0410-b5e6-96231b3b80d8
---
generic/include/clc/clc.h | 1 +
generic/include/clc/math/ceil.h | 6 ++++++
2 files changed, 7 insertions(+)
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>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/libclc.git
More information about the Pkg-opencl-commits
mailing list