shift operation in C language for microcontrollers

Discussion created by Guest on Sep 25, 2011
Latest reply on Sep 29, 2011 by Stan Chernikov

Hello ,


My question is generic to all controllers. The question is whether we can use shift  operation with negative counts.



a =  b << (-4):


Does it do a right shift 4 bit position ? When checked in internet ,the comments are like it is not possible ?

But when checked with one of my friend he told it's possible and is controller specific.


1. Does this possible with (in C context) with any compilers of  freescale controllers?

Is this controller specific operation?


Thanks and Regards