FreeBSD/sys/boot/mips/beri/common/mips.h
/*
 * Endian conversion routines for use in I/O -- most Altera devices are little
 * endian, but our processor is big endian.
 */
Endian conversion routines for use in I/O -- most Altera devices are little
endian, but our processor is big endian.
Endian conversion routines for use in I / O -- most Altera devices are little endian but our processor is big endian .
static inline uint16_t
byteswap16(uint16_t v)
{
	return ((v & 0xff00) >> 8 | (v & 0xff) << 8);
}
static inline uint16_t byteswap16 ( uint16_t v ) { return ( ( v & 0xff00 ) >> 8 | ( v & 0xff ) << 8 ) ; }
Endian conversion routines for use in I/O -- most Altera devices are little
 endian, but our processor is big endian.
Endian conversion routines for use in I / O -- most Altera devices are little endian but our processor is big endian .