|
@@ -1,6 +1,8 @@
|
|
#ifndef _ASM_WORD_AT_A_TIME_H
|
|
#ifndef _ASM_WORD_AT_A_TIME_H
|
|
#define _ASM_WORD_AT_A_TIME_H
|
|
#define _ASM_WORD_AT_A_TIME_H
|
|
|
|
|
|
|
|
+#include <linux/kernel.h>
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* This is largely generic for little-endian machines, but the
|
|
* This is largely generic for little-endian machines, but the
|
|
* optimal byte mask counting is probably going to be something
|
|
* optimal byte mask counting is probably going to be something
|
|
@@ -35,8 +37,6 @@ static inline long count_masked_bytes(long mask)
|
|
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#define REPEAT_BYTE(x) ((~0ul / 0xff) * (x))
|
|
|
|
-
|
|
|
|
/* Return the high bit set in the first byte that is a zero */
|
|
/* Return the high bit set in the first byte that is a zero */
|
|
static inline unsigned long has_zero(unsigned long a)
|
|
static inline unsigned long has_zero(unsigned long a)
|
|
{
|
|
{
|