Author: Vincent Diepeveen
Date: 06:40:22 08/17/02
Go up one level in this thread
On August 17, 2002 at 03:11:49, Daniel Clausen wrote:
>On August 16, 2002 at 23:57:49, Russell Reagan wrote:
>
>>In an old message in the CCC archive, Eugene Nalimov gave a portable C version
>>of FirstOne().
>>
>>int FirstOne (__int64 arg) {
>>__int64 result = 0;
>
>[snip]
>
>Portable? __int64 ist portable C? :)
>
>Sargon
if you look well in the crafty code it is
BITBOARD
So obviously depending upon how you define it, this is portable.
in the new ansi-c it is portable anyway because it foresees in it
with long long.
however compilers are that old that they do not know it yet, with
exception of unix world which already knew it for quite some time.
What i do not know is what the 'portable' way is to print 64 bits
unsigned integers. under irix/linux i use %llu and under windows i till today
have to use %I64u regrettably. That's a lot of extra lines of
code which i prefer to save out!
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.