ashugtiwari
Full Member level 4
- Joined
- Dec 12, 2008
- Messages
- 218
- Helped
- 45
- Reputation
- 90
- Reaction score
- 44
- Trophy points
- 1,308
- Activity points
- 3,310
Hi all,
in one of my project, im doing some division operation on negative numbers, which is division by 2 and 4 mostly, so when i use right shift for division or left shift for multiplication, will the sign persist? or do i have to chk sign before and after operation and make adjustments?
Im using PIC16F1937 8 bit MCU and MPLAB X, plz reply
thanks
Ashutosh
in one of my project, im doing some division operation on negative numbers, which is division by 2 and 4 mostly, so when i use right shift for division or left shift for multiplication, will the sign persist? or do i have to chk sign before and after operation and make adjustments?
Im using PIC16F1937 8 bit MCU and MPLAB X, plz reply
thanks
Ashutosh