2010-03-20, 02:01 PM
SAR has a lot of names.
For positive y, can be defined as
SAR(x,y) = x >> y = floor(x/pow(2, y))
SAR(x, -y) = x << y = x * pow(2, y)
And so forth. Also named bitshifting.
For positive y, can be defined as
SAR(x,y) = x >> y = floor(x/pow(2, y))
SAR(x, -y) = x << y = x * pow(2, y)
And so forth. Also named bitshifting.

