Ints are problematic if you use them for array subscripts and such, because on a 64 bit architecture, you need 64 bit addresses (or at least 48 bit addresses on today's platforms)...Desperado wrote:Hello Bob,
well my data is 99,9% standard "int", with the exceptions for
bitboards and hash numbers which are ui64_t (ms: unsigned __int64).
if you think of that, ok. But if you think also to replace the standard
integers with 64 bit integers i would have to think about it first.
of course i dont like too an explicit cast or using temporary values
where it is not necessary by default.
strange thing this one...
cheers
using int might be ok, or not. But there is no advantage to using int unless you are dealing with an array of ints vs an array of int64's as the former is more cache-friendly than the latter. But there are a lot of hidden performance issues that using int can make you stumble over without ever knowing.