Date: Mon, 1 Feb 1999 08:58:12 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: anarko cc: djgpp AT delorie DOT com Subject: Re: can i do bit rotation in C? In-Reply-To: <11125.990201@flashback.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Mon, 1 Feb 1999, anarko wrote: > one thing i want to do is rotate a char value's bits, like > the x86 assembly instruction ROR/ROL does. > is this possible with an operator, or do i have to use inline > assembly for that? There's no built-in bitwise rotation operator in C to do this. But you don't have to go to assembly, just use other bitwise operators, like shift, and, or, etc.