This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

possible bug in extract_h() function definition in C6000_v7.4.1/include/gsm.h



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