[all-commits] [llvm/llvm-project] cfa322: [libc++][NFC] Reuse `__bit_log2` for `sort` (#135303)

A. Jiang via All-commits all-commits at lists.llvm.org
Sat Apr 12 18:45:39 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cfa322fa9a693d4ba652871fafc6dbb2039b55a2
      https://github.com/llvm/llvm-project/commit/cfa322fa9a693d4ba652871fafc6dbb2039b55a2
  Author: A. Jiang <de34 at live.cn>
  Date:   2025-04-13 (Sun, 13 Apr 2025)

  Changed paths:
    M libcxx/include/__algorithm/sort.h
    M libcxx/include/__bit/bit_log2.h

  Log Message:
  -----------
  [libc++][NFC] Reuse `__bit_log2` for `sort` (#135303)

The `__log2i` function template in `<algorithm/sort.h>` is basically
equivalent to `__bit_log2` in `<__bit/bit_log2.h>`. It seems better to
avoid duplication.



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