Sign in

username:

password:



Not a member?

Search c28x



Search tips

Subscribe to c28x





Discussion Groups

Discussion Groups | TMS320C28x | Cannot compare two int16 numbers - so strange!?

Technical discussions about the TI C28x DSPs (including the C2810, C2811, C2812, F2801, F2806, F2808, F2810,, F2811, F2812, R2811 and R2812).

  

Post a new Thread

Cannot compare two int16 numbers - so strange!? - cbal...@yahoo.com - Sep 4 8:12:04 2006



Hi!
I have very strange problem. In routine I want to make condition
                          if (p->Ia<0xFB84)
where Ia is type int16. But for value Ia=0x0000 condition is true, as if it's unsigned Q15
numbers!! It drives me nuts :-((
I've tried also
                          if (p->Ia<0xFFFFFB84)
as it is 32-bit numbers, but result of test is the same. What am I doing wrong? Please help!
Thanks in advance

AC

You can post a message or access and search the archives of this group on DSPRelated.com:
http://www.dsprelated.com/groups/c28x/1.php

_____________________________________

 


(You need to be a member of c28x -- send a blank email to c28x-subscribe@yahoogroups.com )