0
0
mirror of https://github.com/llvm/llvm-project.git synced 2025-04-27 04:16:09 +00:00
Fraser Cormack 13a313fe58
[libclc] Move sinpi/cospi/tanpi to the CLC library ()
Additionally, these builtins are now vectorized.

This also moves the native_recip and native_divide builtins as they are
used by the tanpi builtin.
2025-04-01 12:03:21 +01:00

16 lines
526 B
Common Lisp

//===----------------------------------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
#include <clc/clc.h>
#include <clc/math/clc_sinpi.h>
#define FUNCTION sinpi
#define __CLC_BODY <clc/shared/unary_def.inc>
#include <clc/math/gentype.inc>