What would be the best solution to convert to left justified bits within a word?
Letīs say I have a 12bit full value in a short like this:
00001111 11111111
it would be converted into:
11111111 11110000
I have been trying different bitwise operations but havenīt come up with one that always works regardless of value.