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