Answer the question
In order to leave comments, you need to log in
What operation can perform this action?
There are two values in binary:
------------------------------101111111001001010111010011 (int)
100010000000000000000000100000101111111001001010111010011 (long)
String value = "101111111001001010111010011";
String result = Long.toString(0x1100001L << 32 | Integer.parseInt(value, 2), 2);
Answer the question
In order to leave comments, you need to log in
In the first value, there is obviously less information than in the second => no way.
UPD:
ideone.com/dNCxZU
long low = 0b101111111001001010111010011L;
long high = 0b100010000000000000000000100000L;
int moveSize = Long.toBinaryString(low).length();
long result = low + (high << moveSize);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question