What is an Arithmetic Right Shift?

What is an Arithmetic Right Shift?



With an Arithmetic Right Shift, the Least Significant Bit is lost, and the Most Significant Bit is COPIED and placed in the leftmost spot.

// -5 Arithmetically Right Shifted = -3

1011 >> 1 -> 1101

// -5 Arithmetically Right Shifted 3 times =

1011 >> 3 -> 1111 = -1

Popular posts from this blog

After analyzing the model, your manager has informed that your regression model is suffering from multicollinearity. How would you check if he's true? Without losing any information, can you still build a better model?

Is rotation necessary in PCA? If yes, Why? What will happen if you don't rotate the components?

What does Latency mean?