mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
arch/tile: Rename the hweight() implementations to __arch_hweight()
See commit 1527bc8b92
.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
This commit is contained in:
parent
7d72e6fa56
commit
947e7dc1ae
1 changed files with 5 additions and 4 deletions
|
@ -98,26 +98,27 @@ static inline int fls64(__u64 w)
|
||||||
return (sizeof(__u64) * 8) - __builtin_clzll(w);
|
return (sizeof(__u64) * 8) - __builtin_clzll(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline unsigned int hweight32(unsigned int w)
|
static inline unsigned int __arch_hweight32(unsigned int w)
|
||||||
{
|
{
|
||||||
return __builtin_popcount(w);
|
return __builtin_popcount(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline unsigned int hweight16(unsigned int w)
|
static inline unsigned int __arch_hweight16(unsigned int w)
|
||||||
{
|
{
|
||||||
return __builtin_popcount(w & 0xffff);
|
return __builtin_popcount(w & 0xffff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline unsigned int hweight8(unsigned int w)
|
static inline unsigned int __arch_hweight8(unsigned int w)
|
||||||
{
|
{
|
||||||
return __builtin_popcount(w & 0xff);
|
return __builtin_popcount(w & 0xff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline unsigned long hweight64(__u64 w)
|
static inline unsigned long __arch_hweight64(__u64 w)
|
||||||
{
|
{
|
||||||
return __builtin_popcountll(w);
|
return __builtin_popcountll(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include <asm-generic/bitops/const_hweight.h>
|
||||||
#include <asm-generic/bitops/lock.h>
|
#include <asm-generic/bitops/lock.h>
|
||||||
#include <asm-generic/bitops/sched.h>
|
#include <asm-generic/bitops/sched.h>
|
||||||
#include <asm-generic/bitops/ext2-non-atomic.h>
|
#include <asm-generic/bitops/ext2-non-atomic.h>
|
||||||
|
|
Loading…
Add table
Reference in a new issue