Date: Wed, 25 Aug 1999 15:16:23 +0700 From: Batchex X-Mailer: The Bat! (v1.32) S/N E34104EF X-Priority: 3 (Normal) Message-ID: <10636.990825@Phreaker.net> To: Davin McCall Subject: Re[6]: Bit counting? In-reply-To: <37c1100a.8985201@newsserver.cc.monash.edu.au> References: <37c1100a DOT 8985201 AT newsserver DOT cc DOT monash DOT edu DOT au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Hi, Monday, August 23, 1999, 4:13:25 PM, you wrote: DM> Look, the algorithm is correct; you only really need to read my DM> description carefully to see how it works. Nevertheless, I've gone to DM> the trouble of actually implementing it (albeit in a very inefficient DM> manner), and the source code follows. It works perfectly for all DM> 32-bit or less numbers. DM> --- (begin) ---- DM> /* bit count program */ >clipped< Oops, I have found where I have gone wrong. You're right, it works. Thanks for the explanations and the implementation. Batchex mailto:thedark1 AT Phreaker DOT net