[all-commits] [llvm/llvm-project] 685af5: [libc++] Simplify <limits> a bit (#140021)

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Sat Jun 21 00:59:08 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 685af55fe004b0d904c3de1c28fdebbeee15d0a4
      https://github.com/llvm/llvm-project/commit/685af55fe004b0d904c3de1c28fdebbeee15d0a4
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2025-06-21 (Sat, 21 Jun 2025)

  Changed paths:
    M libcxx/include/__numeric/gcd_lcm.h
    M libcxx/include/forward_list
    M libcxx/include/limits

  Log Message:
  -----------
  [libc++] Simplify <limits> a bit (#140021)

This does a few small things:
- inline `__libcpp_compute_min`, since we can don't have to put the
arithmetic behind a constraint. Simple arithmetic also tends to be
faster to compile than instantiating a type.
- Remove an unused include (and add missing includes elsewhere)
- Remove `__min` and `__max` from the `bool` specialization

Co-authored-by: Louis Dionne <ldionne.2 at gmail.com>



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