Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1378432 > unrolled thread
| Started by | zengzhaoxiu@163.com |
|---|---|
| First post | 2016-04-14 05:10 +0200 |
| Last post | 2016-04-14 05:10 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH V3 06/29] Tile and MIPS (if has usable __builtin_popcount) use popcount parity functions zengzhaoxiu@163.com - 2016-04-14 05:10 +0200
| From | zengzhaoxiu@163.com |
|---|---|
| Date | 2016-04-14 05:10 +0200 |
| Subject | [PATCH V3 06/29] Tile and MIPS (if has usable __builtin_popcount) use popcount parity functions |
| Message-ID | <rnFPk-3p3-19@gated-at.bofh.it> |
From: Zhaoxiu Zeng <zhaoxiu.zeng@gmail.com> Signed-off-by: Zhaoxiu Zeng <zhaoxiu.zeng@gmail.com> --- arch/mips/include/asm/bitops.h | 7 +++++++ arch/tile/include/asm/bitops.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/arch/mips/include/asm/bitops.h b/arch/mips/include/asm/bitops.h index ce9666c..4192068 100644 --- a/arch/mips/include/asm/bitops.h +++ b/arch/mips/include/asm/bitops.h @@ -626,6 +626,13 @@ static inline int ffs(int word) #include <asm/arch_hweight.h> #include <asm-generic/bitops/const_hweight.h> +#ifdef ARCH_HAS_USABLE_BUILTIN_POPCOUNT +#include <asm-generic/bitops/popc-parity.h> +#else +#include <asm-generic/bitops/arch_parity.h> +#endif +#include <asm-generic/bitops/const_parity.h> + #include <asm-generic/bitops/le.h> #include <asm-generic/bitops/ext2-atomic.h> diff --git a/arch/tile/include/asm/bitops.h b/arch/tile/include/asm/bitops.h index 20caa34..4dd89d8 100644 --- a/arch/tile/include/asm/bitops.h +++ b/arch/tile/include/asm/bitops.h @@ -85,6 +85,8 @@ static inline unsigned long __arch_hweight64(__u64 w) #include <asm-generic/bitops/builtin-__fls.h> #include <asm-generic/bitops/builtin-ffs.h> #include <asm-generic/bitops/const_hweight.h> +#include <asm-generic/bitops/popc-parity.h> +#include <asm-generic/bitops/const_parity.h> #include <asm-generic/bitops/lock.h> #include <asm-generic/bitops/find.h> #include <asm-generic/bitops/sched.h> -- 2.5.0
Back to top | Article view | linux.kernel
csiph-web