Hello TI Support,
I have found the defined function
#define extract_h(a) ((unsigned)(a)>>16) /* extract upper 16 bits */
from .../tools/compiler/C6000_7.4.1/include/gsm.h provides incorrect results compared to the corresponding function
#define extract_h(a) ((unsigned)((a)>>16))
from .../tools/compiler/C5500_4.4.1/include/gsm.h. In the C55X version the shift is performed before the cast. Please take a look at these definitions and consider the differences.
Thanks,
Eric