Consolidate all of the various log2 computing functions into MathExtras.h.
authorChris Lattner <sabre@nondot.org>
Tue, 2 Aug 2005 19:15:30 +0000 (19:15 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 2 Aug 2005 19:15:30 +0000 (19:15 +0000)
commit88c606eb0cc5415ed367c24e073f7bb478501d34
tree10436d0e120364505d8de81b5f897de3665686f5
parent7dc934da2d9e54e4a0f9d7b06ac73bfd0d690a89
Consolidate all of the various log2 computing functions into MathExtras.h.
Also, provide accelerated implementations when building with GCC.
Patch contributed by Jim Laskey!

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