Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Bit counting revisited

Author: Flemming Rodler

Date: 19:19:27 04/19/00

Go up one level in this thread


Hi,

I forgot to ask.

For the other problem of finding the first bit that is 1 from the left (or
right) I was refered to the PC intruction: bsl and bsr.
It was shown (in a post below) how to implement this as inline assembler for
MSVC. Does anybody know how to implement it as inline assembler for gcc and for
the datatype (unsigned long long), i.e. how do I fill out:

int BSL(unsigned long long b) {
???
}


Thanks in advance
Flemming



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.