xref: /llvm-project/libc/src/math/generic/sqrtf128.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
1777eb356Sfelixh5678 //===-- Implementation of sqrtf128 function -------------------------------===//
2777eb356Sfelixh5678 //
3777eb356Sfelixh5678 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4777eb356Sfelixh5678 // See https://llvm.org/LICENSE.txt for license information.
5777eb356Sfelixh5678 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6777eb356Sfelixh5678 //
7777eb356Sfelixh5678 //===----------------------------------------------------------------------===//
8777eb356Sfelixh5678 
9777eb356Sfelixh5678 #include "src/math/sqrtf128.h"
10777eb356Sfelixh5678 #include "src/__support/FPUtil/sqrt.h"
11777eb356Sfelixh5678 #include "src/__support/common.h"
12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
13777eb356Sfelixh5678 
14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
15777eb356Sfelixh5678 
16a2393435SOverMighty LLVM_LIBC_FUNCTION(float128, sqrtf128, (float128 x)) {
17a2393435SOverMighty   return fputil::sqrt<float128>(x);
18a2393435SOverMighty }
19777eb356Sfelixh5678 
20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
21