2 ms·
I assume "first" here means "highest order"? That's what the solution does. Assuming it's an unsigned shift, of course. If it's signed you will get the most
by JJMcJ 5y ago
I assume "first" here means "highest order"? That's what the solution does.
Assuming it's an unsigned shift, of course. If it's signed you will get the most significant bit replicated, and I doubt that's what you want.