kernel: add bit rotation helpers for 16 and 8 bit
authorHarvey Harrison <harvey.harrison@gmail.com>
Fri, 28 Mar 2008 21:16:01 +0000 (14:16 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 28 Mar 2008 21:45:22 +0000 (14:45 -0700)
commit3afe3925987adc3fc052abe404e44520c2072fc8
treecf77c295869b10591865898857d5adaae000415c
parent589499c04b9929ce3de9a9cc591f8a24cf1ebc91
kernel: add bit rotation helpers for 16 and 8 bit

Will replace open-coded variants elsewhere.  Done in the same
style as the 32-bit versions.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: John W. Linville <linville@tuxdriver.com>
Cc: Joe Perches <joe@perches.com>
Cc: Jiri Benc <jbenc@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/bitops.h