This refactors `sqrt` to be header-only, following the libc math refactoring plan. Part of #147386 Closes #177648
24 lines
683 B
C++
24 lines
683 B
C++
//===-- Shared header for sqrt ----------------------------------*- 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIBC_SHARED_MATH_SQRT_H
|
|
#define LLVM_LIBC_SHARED_MATH_SQRT_H
|
|
|
|
#include "shared/libc_common.h"
|
|
#include "src/__support/math/sqrt.h"
|
|
|
|
namespace LIBC_NAMESPACE_DECL {
|
|
namespace shared {
|
|
|
|
using math::sqrt;
|
|
|
|
} // namespace shared
|
|
} // namespace LIBC_NAMESPACE_DECL
|
|
|
|
#endif // LLVM_LIBC_SHARED_MATH_SQRT_H
|