[all-commits] [llvm/llvm-project] 8e4dc4: [Support] Use functions from bit.h (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Sun Jan 22 10:41:27 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e4dc4cfb81e8baf4692d78226fcac6e47acc133
      https://github.com/llvm/llvm-project/commit/8e4dc4cfb81e8baf4692d78226fcac6e47acc133
  Author: Kazu Hirata <kazu at google.com>
  Date:   2023-01-22 (Sun, 22 Jan 2023)

  Changed paths:
    M llvm/include/llvm/Support/MathExtras.h

  Log Message:
  -----------
  [Support] Use functions from bit.h (NFC)

This patch makes the following replacements:

  countLeadingZeros  -> llvm::countl_zero
  countTrailingZeros -> llvm::countr_zero
  countPopulation    -> llvm::popcount




More information about the All-commits mailing list