MathExtras: Return the result of find(First|Last)Set in the input type.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 24 May 2013 22:25:20 +0000 (22:25 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 24 May 2013 22:25:20 +0000 (22:25 +0000)
commit927d8dcb47a50b4471f5619733fb8196fa1e52ea
treedbb17e59d9640d9f5ee287618a8f08d775e5e819
parentc6af2432c802d241c8fffbe0371c023e6c58844e
MathExtras: Return the result of find(First|Last)Set in the input type.

Otherwise ZB_Max returns a wrong result when sizeof(T) > sizeof(size_t).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182684 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/MathExtras.h