Go to the documentation of this file. 1 #ifndef _ASM_WORD_AT_A_TIME_H
2 #define _ASM_WORD_AT_A_TIME_H
8 #include <linux/kernel.h>
9 #include <asm/asm-compat.h>
15 #define WORD_AT_A_TIME_CONSTANTS { REPEAT_BYTE(0xfe) + 1, REPEAT_BYTE(0x7f) }
24 #define create_zero_mask(mask) (mask)
26 static inline long find_zero(
unsigned long mask)
28 long leading_zero_bits;
30 asm (
PPC_CNTLZL "%0,%1" :
"=r" (leading_zero_bits) :
"r" (mask));
31 return leading_zero_bits >> 3;
36 unsigned long rhs = val | c->
low_bits;