[libclc] 77/291: Implement generic rint()

Andreas Beckmann anbe at moszumanska.debian.org
Tue Sep 8 10:53:35 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 831732e712d32f4679a38954ccdf08263fe0f8c4
Author: Tom Stellard <thomas.stellard at amd.com>
Date:   Sat Aug 10 03:40:33 2013 +0000

    Implement generic rint()
    
    git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@188130 91177308-0d34-0410-b5e6-96231b3b80d8
---
 generic/include/clc/clc.h       | 1 +
 generic/include/clc/math/rint.h | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h
index 0b95565..b906245 100644
--- a/generic/include/clc/clc.h
+++ b/generic/include/clc/clc.h
@@ -46,6 +46,7 @@
 #include <clc/math/log2.h>
 #include <clc/math/mad.h>
 #include <clc/math/pow.h>
+#include <clc/math/rint.h>
 #include <clc/math/sin.h>
 #include <clc/math/sqrt.h>
 #include <clc/math/native_cos.h>
diff --git a/generic/include/clc/math/rint.h b/generic/include/clc/math/rint.h
new file mode 100644
index 0000000..d257634
--- /dev/null
+++ b/generic/include/clc/math/rint.h
@@ -0,0 +1,6 @@
+#undef rint
+#define rint __clc_rint
+
+#define __CLC_FUNCTION __clc_rint
+#define __CLC_INTRINSIC "llvm.rint"
+#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