Hello
I am trying to use the following for embedded development :
"num = index/2" but the argument is to use "num=index>>1"
Can some one explain what are the trade off if any (keep in mind this is for embedded development.

Similarly using "num=index*2", instead use "num=index<<1"

help will be greately appreciated.
thanks