MathExtras: Parametrize count(Trailing|Leading)Zeros on the type size.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 12 Feb 2015 13:47:29 +0000 (13:47 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 12 Feb 2015 13:47:29 +0000 (13:47 +0000)
commitbaa4f7474e46b3db860785c881d7e3453bb1d0f9
tree5973cb66753560294cc8e4f77e5888cfa0f7da6f
parente045e378ade9a6aaad3531f647e39a76bab53184
MathExtras: Parametrize count(Trailing|Leading)Zeros on the type size.

Otherwise we will always select the generic version for e.g. unsigned
long if uint64_t is typedef'd to 'unsigned long long'. Also remove
enable_if hacks in favor of static_assert.

llvm-svn: 228921
llvm/include/llvm/Support/MathExtras.h