Message ID | 20160428164856.10120.qmail@ns.horizon.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
> __ffs on the available architectures: > Alpha: sometimes (CONFIG_ALPHA_EV6, CONFIG_ALPHA_EV67) > ARC: sometimes (!CONFIG_ISA_ARCOMPACT) > ARM: sometimes (V5+) > ARM64: NO, could be written using RBIT and CLZ > AVR: yes > Blackfin: NO, could be written using hweight() > C6x: yes > CRIS: NO > FR-V: yes > H8300: NO > Hexagon: yes > IA64: yes > M32R: NO > M68k: sometimes > MetaG: NO > Microblaze: NO > MIPS: sometimes > MN10300: yes > OpenRISC: NO > PA-RISC: NO? Interesting code, but I think it's a net loss. > PowerPC: yes > S390: sometimes (CONFIG_HAVE_MARCH_Z9_109_FEATURES) > Score: NO > SH: NO > SPARC: NO SPARC: sparc64: YES, sparc32: NO Patch needs to be updated to refelct this. Sam -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/alpha/include/asm/bitops.h b/arch/alpha/include/asm/bitops.h index 4bdfbd44..c9c307a8 100644 --- a/arch/alpha/include/asm/bitops.h +++ b/arch/alpha/include/asm/bitops.h @@ -333,6 +333,7 @@ static inline unsigned long ffz(unsigned long word) static inline unsigned long __ffs(unsigned long word) { #if defined(CONFIG_ALPHA_EV6) && defined(CONFIG_ALPHA_EV67) +#define ARCH_HAS_FAST_FFS 1 /* Whee. EV67 can calculate it directly. */ return __kernel_cttz(word); #else