0
0
mirror of https://github.com/llvm/llvm-project.git synced 2025-04-27 11:26:06 +00:00
Fraser Cormack ddc48fefe3
[libclc] Move native_(exp10|powr|tan) to CLC library ()
These are the three remaining native builtins not yet ported.

There are elementwise versions of exp10 and tan which correspond to the
intrinsics, which may be preferable to the current versions which route
through other native builtins. Those could be changed in a follow-up if
desired.
2025-04-02 17:37:17 +01:00

12 lines
503 B
PHP

//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __clc_native_tan(__CLC_GENTYPE val) {
return __clc_native_sin(val) / __clc_native_cos(val);
}