[PATCH] D107240: [LLVM][NFC] Make multiple bitwise MathExtras functions constexpr
    Craig Topper via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Aug  4 16:03:42 PDT 2021
    
    
  
craig.topper added inline comments.
================
Comment at: llvm/include/llvm/Support/MathExtras.h:192
     unsigned long Index;
     _BitScanReverse(&Index, Val);
     return Index ^ 31;
----------------
Does _BitScanReverse work in a constexpr in MSVC? The implementation in clang-cl doesn't work in constexpr, but clang-cl would use __builtin_clz.
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107240/new/
https://reviews.llvm.org/D107240
    
    
More information about the llvm-commits
mailing list