All you'd have to do is get a pointer to it and then you could write two integers into it. As long as you remember what it is and you read it appropriately, it's a very efficient way of sending two integers around.
I've personally made excellent use of a library that masks integers as 16.16 fixed-point reals. Very useful when you've got, say, a 10-bit ADC and a bunch of maths to do, but not enough RAM or processing time between samples to work in floats.
Honestly, I have no idea why you'd perform this particular 'hack', I'm just saying that for this particular instance it probably gave some small speed or memory advantage.
0
u/[deleted] Jun 28 '15
[deleted]