Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 789ce9dc authored by H. Peter Anvin's avatar H. Peter Anvin Committed by Linus Torvalds
Browse files

word-at-a-time: simplify big-endian zero_bytemask macro



This is simpler and cleaner.  Depending on architecture, a smart
compiler may or may not generate the same code.

Acked-by: default avatarWill Deacon <will.deacon@arm.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 98794f93
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ static inline bool has_zero(unsigned long val, unsigned long *data, const struct
}

#ifndef zero_bytemask
#define zero_bytemask(mask) (~0ul << __fls(mask) << 1)
#define zero_bytemask(mask) (~1ul << __fls(mask))
#endif

#endif /* _ASM_WORD_AT_A_TIME_H */