[PATCH] D142179: [ADT] Add bit_floor, bit_ceil, and bit_width to bit.h
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 20 05:35:58 PST 2023
RKSimon added a comment.
In D142179#4068454 <https://reviews.llvm.org/D142179#4068454>, @barannikov88 wrote:
> All these functions are `constexpr` in C++20. Should we do the same?
It'd be nice, but IIRC there were a few problems on some compilers when we tried to do this for some of the previous additions (plus for instance bit_cast uses memcpy).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142179/new/
https://reviews.llvm.org/D142179
More information about the llvm-commits
mailing list