xref: /llvm-project/libc/src/math/generic/sqrtl.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
1bbb75554SSiva Chandra //===-- Implementation of sqrtl function ----------------------------------===//
2bbb75554SSiva Chandra //
3bbb75554SSiva Chandra // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4bbb75554SSiva Chandra // See https://llvm.org/LICENSE.txt for license information.
5bbb75554SSiva Chandra // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6bbb75554SSiva Chandra //
7bbb75554SSiva Chandra //===----------------------------------------------------------------------===//
8bbb75554SSiva Chandra 
9bbb75554SSiva Chandra #include "src/math/sqrtl.h"
10ad4ee2d7STue Ly #include "src/__support/FPUtil/sqrt.h"
11bbb75554SSiva Chandra #include "src/__support/common.h"
12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
13bbb75554SSiva Chandra 
14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
15bbb75554SSiva Chandra 
16bbb75554SSiva Chandra LLVM_LIBC_FUNCTION(long double, sqrtl, (long double x)) {
17a2393435SOverMighty   return fputil::sqrt<long double>(x);
18bbb75554SSiva Chandra }
19bbb75554SSiva Chandra 
20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
21