Commit 002d476a authored by Matt Mackall's avatar Matt Mackall Committed by Linus Torvalds

[PATCH] rol/ror type cleanup

Minor type cleanup.
Signed-off-by: default avatarMatt Mackall <mpm@selenic.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 88d1ad61
...@@ -140,7 +140,7 @@ static inline unsigned long hweight_long(unsigned long w) ...@@ -140,7 +140,7 @@ static inline unsigned long hweight_long(unsigned long w)
* @word: value to rotate * @word: value to rotate
* @shift: bits to roll * @shift: bits to roll
*/ */
static inline __u32 rol32(__u32 word, int shift) static inline __u32 rol32(__u32 word, unsigned int shift)
{ {
return (word << shift) | (word >> (32 - shift)); return (word << shift) | (word >> (32 - shift));
} }
...@@ -151,7 +151,7 @@ static inline __u32 rol32(__u32 word, int shift) ...@@ -151,7 +151,7 @@ static inline __u32 rol32(__u32 word, int shift)
* @word: value to rotate * @word: value to rotate
* @shift: bits to roll * @shift: bits to roll
*/ */
static inline __u32 ror32(__u32 word, int shift) static inline __u32 ror32(__u32 word, unsigned int shift)
{ {
return (word >> shift) | (word << (32 - shift)); return (word >> shift) | (word << (32 - shift));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment