[libc] Implement exp2f function that is correctly rounded for all rounding modes.
authorTue Ly <lntue@google.com>
Fri, 11 Mar 2022 15:08:47 +0000 (10:08 -0500)
committerTue Ly <lntue@google.com>
Mon, 14 Mar 2022 13:42:37 +0000 (09:42 -0400)
commit64721a3312c6e1b7189ffdcf05f9c6ee5b7e6777
tree20d4192758f4e079291d2ae4ee3700ae089d9ce7
parent8cba72177dcd8de5d37177dbaf2347e5c1f0f1e8
[libc] Implement exp2f function that is correctly rounded for all rounding modes.

Implement exp2f function that is correctly rounded for all rounding modes.

Reviewed By: sivachandra, zimmermann6

Differential Revision: https://reviews.llvm.org/D121463
libc/src/math/generic/CMakeLists.txt
libc/src/math/generic/exp2f.cpp
libc/test/src/math/exhaustive/CMakeLists.txt
libc/test/src/math/exhaustive/exp2f_test.cpp [new file with mode: 0644]
libc/test/src/math/exp2f_test.cpp