#include <inmsp.h>
unsigned long __swap_long_bytes(unsigned long x);
__swap_long_bytes swaps the order of all bytes in x and returns that as its result.
__swap_long_bytes is an intrinsic function and produces inline code.
__swap_long_bytes can be used on any MSP430 device.