#include <inmsp.h>unsigned short __bit_reverse_short(unsigned short x);
__bit_reverse_short swaps the order of bits in x.
__bit_reverse_short is an intrinsic function and produces inline code.
__bit_reverse_short can be used on any MSP430 device.