Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: [OT] Inlining Assembler in C - Linking Problems

Author: Steve Maughan

Date: 23:46:54 01/20/04

Go up one level in this thread


Gerd,

>May be your compiler settings are wrong, eg. for msvc6 "project settings / C-
>C++ / optimization / Inline function expansion" should at least set on "Only
>__inline", but not "disabled".

Yes the options are set correctly.

>As Anthony already meantioned, the function should be defined (and not only a
>prototype declaration) in some common header file of course.

It is defined in a header file (I think) - what's the difference between a
definition and a prototype declaration.  The function is listed in the protos.h
file.

I think this is probably the root of the problem but I still have not managed to
get it to work!

>You may try a safe conditional 64-bit bitscan, eg. "jnz found" after the first
>bsf. May be the (often correct predicted) branch outperforms the expensive and
>conditional skipped second "bsf".

I'll give it a go

Thanks,

Steve



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.