Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: GCC Inline Assembler

Author: Russell Reagan

Date: 06:33:45 02/14/04

Go up one level in this thread


On February 14, 2004 at 07:41:08, David Rasmussen wrote:

>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

http://chessprogramming.org/cccsearch/ccc.php?find_thread=256316



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.