[Libclc-dev] [PATCH] math: Add native_tan as wrapper to tan
Aaron Watry via Libclc-dev
libclc-dev at lists.llvm.org
Mon Feb 13 20:05:07 PST 2017
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>
---
generic/include/clc/clc.h | 1 +
generic/include/clc/math/native_tan.h | 10 ++++++++++
2 files changed, 11 insertions(+)
create mode 100644 generic/include/clc/math/native_tan.h
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
--
2.9.3
More information about the Libclc-dev
mailing list