Implement ror32() in the LinuxKPI.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
caddc9e5bb
commit
d7c595eff7
@ -73,6 +73,12 @@ __flsl(long mask)
|
||||
return (flsl(mask) - 1);
|
||||
}
|
||||
|
||||
static inline uint32_t
|
||||
ror32(uint32_t word, unsigned int shift)
|
||||
{
|
||||
|
||||
return ((word >> shift) | (word << (32 - shift)));
|
||||
}
|
||||
|
||||
#define ffz(mask) __ffs(~(mask))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user