I have a long and short I want the bit from the short circuit to be overwritten by the low 16-bit long.
Ex (broken into 16 bits for readability):
> long = 0xffff 0xffff 0xffff 0xffff > short= 0x1234 > > output = (long)0xffff 0xffff 0xffff 0x1234
java bit-manipulation
David parks
source share