Truncating the sum of squares, and then use shift-and-add algorithm to compute its square root. Required MPFR testing infra is updated in https://reviews.llvm.org/D87514 Differential Revision: https://reviews.llvm.org/D87516
19 lines
567 B
C++
19 lines
567 B
C++
//===-- Implementation header for hypotf ------------------------*- 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_SRC_MATH_HYPOTF_H
|
|
#define LLVM_LIBC_SRC_MATH_HYPOTF_H
|
|
|
|
namespace __llvm_libc {
|
|
|
|
float hypotf(float x, float y);
|
|
|
|
} // namespace __llvm_libc
|
|
|
|
#endif // LLVM_LIBC_SRC_MATH_HYPOTF_H
|