summaryrefslogtreecommitdiff
path: root/arch/alpha/include/asm/word-at-a-time.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/alpha/include/asm/word-at-a-time.h')
-rw-r--r--arch/alpha/include/asm/word-at-a-time.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/alpha/include/asm/word-at-a-time.h b/arch/alpha/include/asm/word-at-a-time.h
index 6b340d0f1521..902e6ab00a06 100644
--- a/arch/alpha/include/asm/word-at-a-time.h
+++ b/arch/alpha/include/asm/word-at-a-time.h
@@ -52,4 +52,6 @@ static inline unsigned long find_zero(unsigned long bits)
#endif
}
+#define zero_bytemask(mask) ((2ul << (find_zero(mask) * 8)) - 1)
+
#endif /* _ASM_WORD_AT_A_TIME_H */