Author: awatry
Date: Wed Feb 22 19:46:57 2017
New Revision: 295920

URL: http://llvm.org/viewvc/llvm-project?rev=295920&view=rev
Log:
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 <awa...@gmail.com>
Reviewed-by: Matt Arsenault <arse...@gmail.com>

Added:
    libclc/trunk/generic/include/clc/math/native_tan.h
Modified:
    libclc/trunk/generic/include/clc/clc.h

Modified: libclc/trunk/generic/include/clc/clc.h
URL: 
http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/clc.h?rev=295920&r1=295919&r2=295920&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/clc.h (original)
+++ libclc/trunk/generic/include/clc/clc.h Wed Feb 22 19:46:57 2017
@@ -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 */

Added: libclc/trunk/generic/include/clc/math/native_tan.h
URL: 
http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/math/native_tan.h?rev=295920&view=auto
==============================================================================
--- libclc/trunk/generic/include/clc/math/native_tan.h (added)
+++ libclc/trunk/generic/include/clc/math/native_tan.h Wed Feb 22 19:46:57 2017
@@ -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


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to