[libc] Make log2f correctly rounded for all rounding modes when FMA is not available.
authorTue Ly <lntue@google.com>
Thu, 20 Jan 2022 18:51:04 +0000 (13:51 -0500)
committerTue Ly <lntue@google.com>
Thu, 20 Jan 2022 21:16:11 +0000 (16:16 -0500)
commit1f3f90ab8869887561acadb2540836e7959419f5
treea289e6ed9b7248f329d4374cb5953c5899866612
parent5ef7abbc6f99b46c25c95ad462844990861e8927
[libc] Make log2f correctly rounded for all rounding modes when FMA is not available.

Add to log2f 2 more exceptional cases got when not using fma for polyeval.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D117812
libc/src/math/generic/log2f.cpp
libc/test/src/math/log2f_test.cpp