Reviewer: Jeroen Ketema
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 318064
-//===-- generic/include/clc/math/native_tan.h -----------------------------===//
+#define __CLC_BODY <clc/math/unary_decl.inc>
+#define __CLC_FUNCTION native_tan
+#define __FLOAT_ONLY
-//
-// 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
+#include <clc/math/gentype.inc>
+
+#undef __FLOAT_ONLY
+#undef __CLC_BODY
+#undef __CLC_FUNCTION
math/native_log2.cl
math/native_sin.cl
math/native_sqrt.cl
+math/native_tan.cl
math/tables.cl
math/clc_nextafter.cl
math/nextafter.cl
--- /dev/null
+#include <clc/clc.h>
+
+#define __CLC_BODY <native_tan.inc>
+#define __FLOAT_ONLY
+#include <clc/math/gentype.inc>
--- /dev/null
+_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE native_tan(__CLC_GENTYPE val) {
+ return native_sin(val) / native_cos(val);
+}