I'm pretty sure its just a matter of some bitwise operations, I'm just not entirely sure of exactly what I should be doing, and all searches return back "64 bit vs 32 bit".
pack:
u32 x, y; u64 v = ((u64)x) << 32 | y;
unpack:
x = (u32)((v & 0xFFFFFFFF00000000LL) >> 32); y = (u32)(v & 0xFFFFFFFFLL);
1.4m articles
1.4m replys
5 comments
57.0k users