diff options
| author | Aaron Watry <awatry@gmail.com> | 2017-02-23 01:46:57 +0000 |
|---|---|---|
| committer | Aaron Watry <awatry@gmail.com> | 2017-02-23 01:46:57 +0000 |
| commit | dfec3c8e950fb6a204fcb60189a13dd99fb376af (patch) | |
| tree | f054f25f739e8618cf86328d2bbc2770deac978c | |
| parent | 696e31271b981e14b4f7741c3a64ac8fc3bff4f6 (diff) | |
| download | bcm5719-llvm-dfec3c8e950fb6a204fcb60189a13dd99fb376af.tar.gz bcm5719-llvm-dfec3c8e950fb6a204fcb60189a13dd99fb376af.zip | |
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@gmail.com>
Reviewed-by: Matt Arsenault <arsenm2@gmail.com>
llvm-svn: 295920
| -rw-r--r-- | libclc/generic/include/clc/clc.h | 1 | ||||
| -rw-r--r-- | libclc/generic/include/clc/math/native_tan.h | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/libclc/generic/include/clc/clc.h b/libclc/generic/include/clc/clc.h index e2f0f4f3b52..da526b20d0d 100644 --- a/libclc/generic/include/clc/clc.h +++ b/libclc/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/libclc/generic/include/clc/math/native_tan.h b/libclc/generic/include/clc/math/native_tan.h new file mode 100644 index 00000000000..cb4453895c5 --- /dev/null +++ b/libclc/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 |

