return (((uint32) *(uint16 *)x) << 16) | ((uint32) *(uint16 *)(x+2));
}
-ENDIAN_INLINE int64
-get_longlong (uint8 *x)
-{
- uint32 top = get_longword (x);
- uint32 bottom = get_longword (x+4);
- return (((int64)top)<<32) | (int64)bottom;
-}
-
ENDIAN_INLINE void
write_word (uint8 *addr, uint16 data)
{
*(uint16 *)(addr + 2) = (uint16)(data >> 16);
*(uint16 *)(addr) = (uint16)data;
}
-
-ENDIAN_INLINE void
-write_longlong (uint8 *addr, int64 data)
-{
- write_longword (addr+4, (uint32)(data >> 32));
- write_longword (addr, (uint32)data);
-}