]> git.baikalelectronics.ru Git - kernel.git/commit
word-at-a-time: provide generic big-endian zero_bytemask implementation
authorWill Deacon <will.deacon@arm.com>
Thu, 12 Dec 2013 17:40:22 +0000 (17:40 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Dec 2013 18:39:01 +0000 (10:39 -0800)
commite9aabe9f3ee71d55940cb0f93935924991a0da1f
treea94b6a3d2456800197d67effa2677d426d00d31d
parent2469d56bcf60dca34ad07223ab806a49ae9f7578
word-at-a-time: provide generic big-endian zero_bytemask implementation

Whilst architectures may be able to do better than this (which they can,
by simply defining their own macro), this is a generic stab at a
zero_bytemask implementation for the asm-generic, big-endian
word-at-a-time implementation.

On arm64, a clz instruction is used to implement the fls efficiently.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-generic/word-at-a-time.h