Skip to content

Instantly share code, notes, and snippets.

@garethlewin
Created February 29, 2012 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garethlewin/1945197 to your computer and use it in GitHub Desktop.
Save garethlewin/1945197 to your computer and use it in GitHub Desktop.
static ALWAYS_INLINE uint64_t endian_fix64( uint64_t x )
{
return endian_fix32(x>>32) + ((uint64_t)endian_fix32(x)<<32);
}
1>c:\dev\x264-devel\common\osdep.h(242): warning C4244: 'argument' : conversion from 'uint64_t' to 'uint32_t', possible loss of data
1>c:\dev\x264-devel\common\osdep.h(247): warning C4244: 'return' : conversion from 'uint64_t' to 'intptr_t', possible loss of data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment