xref: /llvm-project/libc/src/math/generic/f16sqrtl.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
16c1c451bSOverMighty //===-- Implementation of f16sqrtl function -------------------------------===//
26c1c451bSOverMighty //
36c1c451bSOverMighty // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
46c1c451bSOverMighty // See https://llvm.org/LICENSE.txt for license information.
56c1c451bSOverMighty // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66c1c451bSOverMighty //
76c1c451bSOverMighty //===----------------------------------------------------------------------===//
86c1c451bSOverMighty 
96c1c451bSOverMighty #include "src/math/f16sqrtl.h"
106c1c451bSOverMighty #include "src/__support/FPUtil/sqrt.h"
116c1c451bSOverMighty #include "src/__support/common.h"
12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
136c1c451bSOverMighty 
14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
156c1c451bSOverMighty 
166c1c451bSOverMighty LLVM_LIBC_FUNCTION(float16, f16sqrtl, (long double x)) {
176c1c451bSOverMighty   return fputil::sqrt<float16>(x);
186c1c451bSOverMighty }
196c1c451bSOverMighty 
20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
21