Menu
i am new to the whole bitwise stuff, i have found a means to do a left rotate
[code=php]// rotates the bits in x left n bits
function left_rotate($x, $n)
{
return ($x << $n) | (($x & 0x80000000) ? (($x >> 1) & 0x07fffffff | 0x40000000) >> (31 – $n) : ($x >> 32 – $n));
}
, but have not found a means to do a right rotate, how can this be done
thanks