[libc] Add implementation of hypot.
authorTue Ly <lntue@google.com>
Fri, 18 Sep 2020 03:22:18 +0000 (23:22 -0400)
committerTue Ly <lntue@google.com>
Thu, 3 Dec 2020 16:08:20 +0000 (11:08 -0500)
commit3b487d51e2ec699c27387fc30374f0d035b2a482
tree34ee4daf3342133c5e52d31bf79ec2a38f1c8d22
parentc00516d52054e31179ce921a35a3815032feed0f
[libc] Add implementation of hypot.

Refactor src/math/hypotf.cpp and test/src/math/hypotf_test.cpp and reuse them for hypot and hypot_test

Differential Revision: https://reviews.llvm.org/D91831
12 files changed:
libc/config/linux/aarch64/entrypoints.txt
libc/config/linux/x86_64/entrypoints.txt
libc/spec/stdc.td
libc/src/math/CMakeLists.txt
libc/src/math/hypot.cpp [new file with mode: 0644]
libc/src/math/hypot.h [new file with mode: 0644]
libc/src/math/hypotf.cpp
libc/test/src/math/CMakeLists.txt
libc/test/src/math/HypotTest.h [new file with mode: 0644]
libc/test/src/math/hypot_test.cpp [new file with mode: 0644]
libc/test/src/math/hypotf_test.cpp
libc/utils/FPUtil/Hypot.h [new file with mode: 0644]