public static uint RotateLeft(this uint value, int count) { return (value << count) | (value >> (32 - count)) } public static uint RotateRight(this uint value, int count) { return (value >> count) | (value << (32 - count)) }