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

via libc-commits libc-commits at lists.llvm.org
Fri May 10 08:07:33 PDT 2024


================
@@ -528,7 +528,7 @@ LLVM_LIBC_FUNCTION(float, powf, (float x, float y)) {
   // So if |y| > 151 * 2^24, and x is finite:
   //   |y * log2(x)| = 0 or > 151.
----------------
lntue wrote:

Actually there are still more exact cases to be tested, those that are related to `y = 2^-n`, i.e. taking `2^n`-root of `x`.  At least we still need to clear the `FE_INEXACT` flag for those cases.  I'll update the comment when we have a complete list of all the exact cases for `powf`.

https://github.com/llvm/llvm-project/pull/91488


More information about the libc-commits mailing list