OSDN Git Service

[libc] Add implementation for hypotf
authorTue Ly <lntue@google.com>
Thu, 13 Aug 2020 01:18:28 +0000 (21:18 -0400)
committerTue Ly <lntue@google.com>
Fri, 18 Sep 2020 03:28:36 +0000 (23:28 -0400)
commitf55963d501e46c9453d08a0c764ec40141230966
tree2df6bc405f84a43f49841b6b7a44ca5eb8a55215
parent2ffaa9a1732c6f2af514603d25f0e8c238b3dd06
[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
libc/config/linux/aarch64/entrypoints.txt
libc/config/linux/api.td
libc/config/linux/x86_64/entrypoints.txt
libc/spec/stdc.td
libc/src/math/CMakeLists.txt
libc/src/math/hypotf.cpp [new file with mode: 0644]
libc/src/math/hypotf.h [new file with mode: 0644]
libc/test/src/math/CMakeLists.txt
libc/test/src/math/hypotf_test.cpp [new file with mode: 0644]