Computer Chess Club Archives


Search

Terms

Messages

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

Author: martin fierz

Date: 15:08:13 04/08/02


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?

cheers
  martin



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.