ta/wallet_ta.c
/**
  * Swap endianness of a 32 bit unsigned integer.
  * \param v The integer to modify.
  */
Swap endianness of a 32 bit unsigned integer.
\param v The integer to modify.
Swap endianness of a 32 bit unsigned integer . \ param v The integer to modify .
static void swap_endian_internal(uint32_t *v)
{
	uint8_t t;
	uint8_t *r;
	r = (uint8_t *)v;
	t = r[0];
	r[0] = r[3];
	r[3] = t;
	t = r[1];
	r[1] = r[2];
	r[2] = t;
}
static void swap_endian_internal ( uint32_t * v ) { uint8_t t ; uint8_t * r ; r = ( uint8_t * ) v ; t = r [ 0 ] ; r [ 0 ] = r [ 3 ] ; r [ 3 ] = t ; t = r [ 1 ] ; r [ 1 ] = r [ 2 ] ; r [ 2 ] = t ; }
Swap endianness of a 32 bit unsigned integer.
Swap endianness of a 32 bit unsigned integer .