Computer Chess Club Archives


Search

Terms

Messages

Subject: GCC Inline Assembler

Author: David Rasmussen

Date: 04:41:08 02/14/04


I have this

inline int FirstBit(const BitBoard bitboard)
{
        __asm
        {
                bsf eax,[bitboard+4]
                xor eax,32
                bsf eax,[bitboard]
        }
}

currently, which works with VC++. How do I do the same in gcc?

/David



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.