Unverified Commit 92dfe20a authored by lntue's avatar lntue Committed by GitHub
Browse files

[libc][math] Fix exact cases for powf. (#91488)

It was reported from the CORE-MATH project that the `powf`
implementation did not round correctly when `x^y` is either exact for
exactly half-way.

This PR deals with the potential exact cases when `y` is an integer `2 <
y < 25`. In such cases, the results of `x^y` is exactly representable in
double precision.
parent c5c8ae43
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment