[libc] Fix the overflow check condition of ldexp.
authorSiva Chandra Reddy <sivachandra@google.com>
Wed, 18 Nov 2020 15:30:29 +0000 (07:30 -0800)
committerSiva Chandra Reddy <sivachandra@google.com>
Thu, 19 Nov 2020 05:35:48 +0000 (21:35 -0800)
commit4d8dede5e53a802bb35dd54cd693390793cb753f
tree1c40a9f85ad54de8845e13f80f6fdaadea7e5e04
parent8ab2353a4c3dc430b28190b98b16418ef8ffce30
[libc] Fix the overflow check condition of ldexp.

Targeted tests have been added.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D91752
libc/test/src/math/LdExpTest.h
libc/utils/FPUtil/ManipulationFunctions.h