answersLogoWhite

0

Yes:

unsigned char CircLeft (unsigned char value)

{

if (value&0x80) return (value<<1) + 1;

else return (value<<1);

}

unsigned char CircRight (unsigned char value)

{

if (value&0x01) return (value>>1) + 0x80;

else return (value>>1);

}

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor

Add your answer:

Earn +20 pts
Q: Can we perform bitwise circular shift in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp