q-format

Conversion of fixed point signed Q8 to Q4 format

Hi I need to convert from fixed point signed Q8 format to fixed point signed Q4 format in c. I assume that I can just do a bitshift by four, is this correct? Do I need to take into account the sign bit? Update: This is for an ARM11 architecture, but I would prefer a non-architecture specific solution. Thanks ...