[libclc] 01/06: math: Add native_tan as wrapper to tan

Andreas Boll aboll-guest at moszumanska.debian.org
Thu Mar 30 10:23:08 UTC 2017


This is an automated email from the git hooks/post-receive script.

aboll-guest pushed a commit to branch master
in repository libclc.

commit a2593ed8adbf7386f88dfc828cfc32f788ec3983
Author: Aaron Watry <awatry at gmail.com>
Date:   Thu Feb 23 01:46:57 2017 +0000

    math: Add native_tan as wrapper to tan
    
    Trivially define native_tan as a redirect to tan.
    
    If there are any targets with a native implementation, we can deal with it later.
    
    Signed-off-by: Aaron Watry <awatry at gmail.com>
    Reviewed-by: Matt Arsenault <arsenm2 at gmail.com>
    
    git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@295920 91177308-0d34-0410-b5e6-96231b3b80d8
---
 generic/include/clc/clc.h             |  1 +
 generic/include/clc/math/native_tan.h | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h
index e2f0f4f..da526b2 100644
--- a/generic/include/clc/clc.h
+++ b/generic/include/clc/clc.h
@@ -103,6 +103,7 @@
 #include <clc/math/native_sin.h>
 #include <clc/math/native_sqrt.h>
 #include <clc/math/native_rsqrt.h>
+#include <clc/math/native_tan.h>
 #include <clc/math/rsqrt.h>
 
 /* 6.11.2.1 Floating-point macros */
diff --git a/generic/include/clc/math/native_tan.h b/generic/include/clc/math/native_tan.h
new file mode 100644
index 0000000..cb44538
--- /dev/null
+++ b/generic/include/clc/math/native_tan.h
@@ -0,0 +1,10 @@
+//===-- generic/include/clc/math/native_tan.h -----------------------------===//
+
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under both the University of Illinois Open Source
+// License and the MIT license. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+#define native_tan tan

-- 
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