[all-commits] [llvm/llvm-project] 23f6c3: [libc++][modules] Remove dependency on __algorithm...

Louis Dionne via All-commits all-commits at lists.llvm.org
Wed Sep 4 13:39:31 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 23f6c3370b8bc0bf773e69a41bf90454c0a10120
      https://github.com/llvm/llvm-project/commit/23f6c3370b8bc0bf773e69a41bf90454c0a10120
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2024-09-04 (Wed, 04 Sep 2024)

  Changed paths:
    M libcxx/include/__math/hypot.h
    M libcxx/test/libcxx/transitive_includes/cxx03.csv
    M libcxx/test/libcxx/transitive_includes/cxx11.csv
    M libcxx/test/libcxx/transitive_includes/cxx14.csv
    M libcxx/test/libcxx/transitive_includes/cxx17.csv
    M libcxx/test/libcxx/transitive_includes/cxx20.csv
    M libcxx/test/libcxx/transitive_includes/cxx23.csv
    M libcxx/test/libcxx/transitive_includes/cxx26.csv

  Log Message:
  -----------
  [libc++][modules] Remove dependency on __algorithm/max from hypot.h (#107150)

That dependency was added recently when we made improvements to
std::hypot, but that resulted in `__math` depending on `__algorithm`,
which is a very heavyweight module. This patch uses `__math::fmax`
instead.



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