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
This commit is contained in:
Aaron Watry 2017-02-23 01:46:57 +00:00
parent 696e31271b
commit dfec3c8e95
2 changed files with 11 additions and 0 deletions

View File

@ -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 */

View File

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