Files
clang-p2996/libc/src/math/hypotf.h
Tue Ly f55963d501 [libc] Add implementation for hypotf
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
2020-09-17 23:28:36 -04:00

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