[all-commits] [llvm/llvm-project] 4ac3f7: [libc][obvious] fix sqrt when long double is double

michaelrj-google via All-commits all-commits at lists.llvm.org
Tue Mar 29 16:05:53 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4ac3f7e41aaea0ad678a41cc2408bb9eda7ba33c
      https://github.com/llvm/llvm-project/commit/4ac3f7e41aaea0ad678a41cc2408bb9eda7ba33c
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-03-29 (Tue, 29 Mar 2022)

  Changed paths:
    M libc/src/__support/FPUtil/x86_64/sqrt.h

  Log Message:
  -----------
  [libc][obvious] fix sqrt when long double is double

Previously, the "fsqrt" instruction was used on all x86_64 platforms
for finding the square root of long doubles. On long double is double
platforms (e.g. windows) this created errors. This patch changes square
root function for long doubles to be the same as the one for doubles if
long doubles are doubles.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D122688




More information about the All-commits mailing list