Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: assembly popcount, msb, lsb for visual C and unsigned 32-bit integers?

Author: Dann Corbit

Date: 17:02:41 04/08/02

Go up one level in this thread


On April 08, 2002 at 18:08:13, martin fierz wrote:

>aloha!
>
>i'm sure this has been asked and answered before: my checkers program uses
>bitboards, but unlike chess, i only need 32 bits. my basic data type is
>therefore an unsigned 32-bit integer. i'm looking for assembly code to stuff in
>my C source code under visual C for bitcount, most significant and least
>significant bit. i know absolutely no assembler, so i can look at the crafty
>assembly code for 64 bits, but i can't adapt it :-(
>can anyone help?

Here are some pure C bit counting functions:
ftp://cap.connx.com/pub/bitcount/BITC.ZIP



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.