[llvm] [llvm] Add support for zero-width integers in MathExtras.h (PR #87193)

Théo Degioanni via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 12 01:42:09 PDT 2024


Moxinilian wrote:

@zero9178 So it turns out that indeed everything else is either not dependent on bitwidth or tested for 0. One of the functions in fact already accomodated for the undefined behavior of shifting a 64-bit value by 64 in the zero case. I updated it to your recommended syntax for consistency as I agree it makes it easier to parse.

https://github.com/llvm/llvm-project/pull/87193


More information about the llvm-commits mailing list