diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2013-08-14 09:06:59 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2013-08-26 17:22:58 -0400 |
commit | 44fd81fe7eb8029a37ec83f15d4ef3585dd81bb6 (patch) | |
tree | a9a084e97933b6c140ef421b9fc882238745f8fd /arch/ia64 | |
parent | ab10596f8a45cf19f5482af2a64f4bd4e5bf88c0 (diff) |
[IA64] Use asm-generic/bitops/builtin-ffs.h
The definition of ffs() for ia64 is almost the same as
asm-generic/bitops/builtin-ffs.h. The only difference is whether it is
defined as inline function or macro function. So this switches to use
the header (both to reduce amount of arch specific code, and because
inline functions provide type-checking that macros do not).
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/include/asm/bitops.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/ia64/include/asm/bitops.h b/arch/ia64/include/asm/bitops.h index 8e20bff39f79..c27eccd33349 100644 --- a/arch/ia64/include/asm/bitops.h +++ b/arch/ia64/include/asm/bitops.h | |||
@@ -425,13 +425,7 @@ __fls (unsigned long x) | |||
425 | 425 | ||
426 | #include <asm-generic/bitops/fls64.h> | 426 | #include <asm-generic/bitops/fls64.h> |
427 | 427 | ||
428 | /* | 428 | #include <asm-generic/bitops/builtin-ffs.h> |
429 | * ffs: find first bit set. This is defined the same way as the libc and | ||
430 | * compiler builtin ffs routines, therefore differs in spirit from the above | ||
431 | * ffz (man ffs): it operates on "int" values only and the result value is the | ||
432 | * bit number + 1. ffs(0) is defined to return zero. | ||
433 | */ | ||
434 | #define ffs(x) __builtin_ffs(x) | ||
435 | 429 | ||
436 | /* | 430 | /* |
437 | * hweightN: returns the hamming weight (i.e. the number | 431 | * hweightN: returns the hamming weight (i.e. the number |