02-05-2014, 11:07 PM
(02-05-2014, 04:05 PM)daniel0916 Wrote: Which should i use then?Try int64_t or uint64_t. You might need to do #include <inttypes.h>
(02-05-2014, 04:05 PM)daniel0916 Wrote: This code is from the pre release protocol site (http://wiki.vg/Pre-release_protocol#Position)Yeah the decoding is a mystery to me but maybe it's using shifting and overflow in order to mask bits...
I think in order to get z you simply do
Code:
z = val & 0x3FFFFFF;
But who knows, maybe what you wrote works if you use int64_t