Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: BitScan with reset - not so impressive with 3DNow!

Author: Dieter Buerssner

Date: 13:07:53 12/05/02

Go up one level in this thread


On December 05, 2002 at 15:39:40, Matt Taylor wrote:

>unsigned int A = -(-2^31)
>
>A would be 2^31, regardless of signedness or unsignedness. The two's compliment
>of -2^31 (80000000h) is 2^31 (7FFFFFFFh + 1).

I was speaking in the context of Standard C, where it is undefined behaviour. It
is not forbidden, that the compiler produces code, that yields the expected
result, however :-)

Cheers,
Dieter



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.