Displaying 3 results from an estimated 3 matches for "qconst".
Did you mean:
const
2006 Apr 21
2
Major internal changes, TI DSP build change
...When I patch the value 0x4006 into the C55 build, the output matches
> the C6x. The problem is that 2^15 evaluates to -32768 on the C55 and 32768
> on the C6x.
Right on!
> Applying our friend EXTEND32 causes the constant to evaluate correctly. In
> fixed_generic.h,
> #define QCONST16(x,bits)
> ((spx_word16_t)((x)*((EXTEND32(1))<<(bits))+((EXTEND32(1))<<((bits)-1))))
Actually, this is a case for a simple cast to (spx_word32_t) because
QCONST can be used in a static initialization and EXTEND32 *can* be
defined as a function (e.g. for fixed-point debug).
>...
2006 Apr 22
0
Major internal changes, TI DSP build change
...tput
>> matches
>> the C6x. The problem is that 2^15 evaluates to -32768 on the C55 and
>> 32768
>> on the C6x.
>
>Right on!
>
>> Applying our friend EXTEND32 causes the constant to evaluate correctly.
>> In
>> fixed_generic.h,
>> #define QCONST16(x,bits)
>> ((spx_word16_t)((x)*((EXTEND32(1))<<(bits))+((EXTEND32(1))<<((bits)-1))))
>
>Actually, this is a case for a simple cast to (spx_word32_t) because
>QCONST can be used in a static initialization and EXTEND32 *can* be
>defined as a function (e.g. for fixed-po...
2006 Apr 20
5
Major internal changes, TI DSP build change
Hi Jim,
> Build 11169 in SVN works correctly.
Good. I'll try not to forget the EXTEND32 from now on.
> I have attached a zip file (renamed
> .txt) with a patch to bits.c to make the byteswapping for TI DSPs
> consistent.
Seems like unzip can't read it. Either it's in an unknown format or the
file got corrupted. Could simply send as multiple (uncompressed)