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