[all-commits] [llvm/llvm-project] 5aacf9: [libc++] Use _Complex for multiplication and divis...

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Fri Jul 5 02:26:21 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5aacf93a8968b1ae83382ed0ce6de8279b0cd753
      https://github.com/llvm/llvm-project/commit/5aacf93a8968b1ae83382ed0ce6de8279b0cd753
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2024-07-05 (Fri, 05 Jul 2024)

  Changed paths:
    M libcxx/include/cmath
    M libcxx/include/complex
    M libcxx/src/CMakeLists.txt
    A libcxx/src/support/win32/compiler_rt_shims.cpp
    M libcxx/test/std/numerics/complex.number/complex.member.ops/divide_equal_complex.pass.cpp
    M libcxx/test/std/numerics/complex.number/complex.ops/complex_divide_complex.pass.cpp
    M libcxx/test/std/numerics/complex.number/complex.ops/complex_times_complex.pass.cpp
    M libcxx/test/std/numerics/complex.number/complex.ops/scalar_divide_complex.pass.cpp
    A libcxx/test/support/floating_pointer_helpers.h

  Log Message:
  -----------
  [libc++] Use _Complex for multiplication and division of complex floating point types (#83575)

This significantly simplifies the implementation and improves the
codegen. The only downside is that the accuracy can be marginally worse,
but that is up to the compiler to decide with this change, which means
it can be controlled by compiler flags.

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



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