M
mike
Trying to convert the following to little endian. I have set up my
long bits but dont know how to shift the bits correctly. Heres what I
have at the moment.
long lgn = 0;
long l = Double.doubleToLongBits(dbl);
for (int shift = 0; shift < 64; shift+=8)
{
lgn |= l & 0xff << shiftBy;
}
Any help would be great.
long bits but dont know how to shift the bits correctly. Heres what I
have at the moment.
long lgn = 0;
long l = Double.doubleToLongBits(dbl);
for (int shift = 0; shift < 64; shift+=8)
{
lgn |= l & 0xff << shiftBy;
}
Any help would be great.