Implement ror32() in the LinuxKPI.

Obtained from:	kmacy @
MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
hselasky 2016-05-23 12:53:17 +00:00
parent caddc9e5bb
commit d7c595eff7

View File

@ -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))