Author: Eugene Nalimov
Date: 10:30:50 08/17/02
Go up one level in this thread
#if defined (_MSC_VER)
# define LLU_FORMAT "%I64u"
#else
# define LLU_FORMAT "%llu"
#endif
...
printf ("Value 1 is " LLU_FORMAT " value 2 is " LLU_FORMAT "\n", v1, v2);
...
Thanks,
Eugene
On August 17, 2002 at 09:40:22, Vincent Diepeveen wrote:
>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.