Files
clang-p2996/libclc/generic/include/clc/math/rootn.h
Fraser Cormack 7a2b160e76 [libclc] Move rootn to the CLC library; optimize (#133735)
The function was already nominally in the CLC namespace; this commit
just moves it over.

This commit also vectorizes the builtin to avoid scalarization.
2025-04-01 09:19:50 +01:00

16 lines
539 B
C

//===----------------------------------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
#define __CLC_BODY <clc/math/binary_decl_with_int_second_arg.inc>
#define __CLC_FUNCTION rootn
#include <clc/math/gentype.inc>
#undef __CLC_BODY
#undef __CLC_FUNCTION