Hello,
I've spent literally all day trying to find a solution to this issue, without success.
I have an array of longs of size 2, where the first element represents the left half and the second element represents the right half of a 128-bit number. Since there is no data type which supports 128-bit values on
java, I used the array of longs as the next best thing.
I need to somehow combine (or without combining if possible) these two halves and perform a bitwise left rotation of k bits on them, and finally convert them back to longs (long array). I can't seem to find a solution to this. I tried using BigInteger as a structure to hold the whole number, and then perform a combination of left-shift, right-shift operations which you normally would do on integers, longs, but without luck.
Trying to manipulate at the bit-level without combining the two longs seems impossible.
I would love to hear from you guys any suggestions, ideas or how to's on how to find a solution to this.