[all-commits] [llvm/llvm-project] 92dfe2: [libc][math] Fix exact cases for powf. (#91488)

lntue via All-commits all-commits at lists.llvm.org
Fri May 10 08:08:04 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 92dfe20acd4b101c58d7eb72cb7c0a9d4ae36385
      https://github.com/llvm/llvm-project/commit/92dfe20acd4b101c58d7eb72cb7c0a9d4ae36385
  Author: lntue <35648136+lntue at users.noreply.github.com>
  Date:   2024-05-10 (Fri, 10 May 2024)

  Changed paths:
    M libc/src/math/generic/powf.cpp
    M libc/test/src/math/powf_test.cpp

  Log Message:
  -----------
  [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.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list