[all-commits] [llvm/llvm-project] 5b9b25: [libc++][NFC] Use std::has_single_bit instead of s...
Nikolas Klauser via All-commits
all-commits at lists.llvm.org
Thu Feb 19 00:30:04 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5b9b25b9f885fd0b2a0827ce95830867d78765c7
https://github.com/llvm/llvm-project/commit/5b9b25b9f885fd0b2a0827ce95830867d78765c7
Author: Nikolas Klauser <nikolasklauser at berlin.de>
Date: 2026-02-19 (Thu, 19 Feb 2026)
Changed paths:
M libcxx/include/__stop_token/atomic_unique_lock.h
Log Message:
-----------
[libc++][NFC] Use std::has_single_bit instead of std::popcount(v) == 1 (#181787)
We have a function that specifically checks if a single bit is set. Use
that instad of a `popcount`.
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