From: Clemens Valens Newsgroups: comp.os.msdos.djgpp Subject: Re: what do >>1 and >> 2 do? Organization: http://www.remarq.com: The World's Usenet/Discussions Start Here X-Originating-Host: 195.154.148.69 X-Wren-Trace: cCMEJDEjfx44dncKM2RiamRwY398djpvdH9scXNuYyN9fDZsfDZiY352f2h7OnA3bDkuIDFyBwsvPm0uPGYkOGhgLSc= Message-ID: <933869960.9541@www.remarq.com> References: <7oc1bo$7e8$1 AT nnrp1 DOT deja DOT com> Lines: 12 Date: Thu, 05 Aug 1999 08:19:16 -0800 NNTP-Posting-Host: 10.0.3.195 X-Complaints-To: wrenabuse AT remarq DOT com X-Trace: WReNphoon3 933869692 10.0.3.195 (Thu, 05 Aug 1999 09:14:52 PDT) NNTP-Posting-Date: Thu, 05 Aug 1999 09:14:52 PDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Why? >>1 shifts all bits one position to the right, >>2 two. Bits that fall out at the right side are lost, on the left side bits with the same value as the sign bit are added. Clemens * Sent from RemarQ http://www.remarq.com The Internet's Discussion Network * The fastest and easiest way to search and participate in Usenet - Free!