Thursday, February 23, 2012

Code Journal Update

Posted by Jason On September - 28 - 2010

Hey sorry for no updates, been busy!  I will update with my 2010 trip to Tokyo Game show! but first!

Today at work, we came across a Sony API callback that returns a 64 bit Integer, and we needed to get the Low and Hi bits of it into two 32 Bit Integers.

So we used this:

inline unsigned long HILONG(__int64 value)
{
return (unsigned long)(value >> 32);
}
inline unsigned long LOLONG(__int64 value)
{
return (unsigned long)(value & 0xffffffff);
}

Add A Comment

You must be logged in to post a comment.