[PATCH] D142179: [ADT] Add bit_floor, bit_ceil, and bit_width to bit.h
    Kazu Hirata via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Jan 20 09:43:16 PST 2023
    
    
  
kazu updated this revision to Diff 490897.
kazu added a comment.
I've added a comment about the undefined behavior.
I've specified the type like llvm::bit_width((T)(Value - 1u)).
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142179/new/
https://reviews.llvm.org/D142179
Files:
  llvm/include/llvm/ADT/bit.h
  llvm/unittests/ADT/BitTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142179.490897.patch
Type: text/x-patch
Size: 4884 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230120/dc34ec79/attachment.bin>
    
    
More information about the llvm-commits
mailing list