Use the GCC built-in for PopulationCount when it's available, and use a faster
authorOwen Anderson <resistor@mac.com>
Thu, 1 Mar 2007 05:41:28 +0000 (05:41 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 1 Mar 2007 05:41:28 +0000 (05:41 +0000)
commit2a934cb6072bb0840b39e899e02ad9dea95b18dc
treef4f377914ba248494332eaeab39a2e33844336ce
parentaf8fb1984674db462bc6923ed54db0275c78b711
Use the GCC built-in for PopulationCount when it's available, and use a faster
algorithm when it's not.  This should be particularly noticeable in the
64-bit case.

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