Author: Mario Antonio F.
Date: 19:07:25 01/19/05
Go up one level in this thread
On January 19, 2005 at 11:55:43, Rémi Coulom wrote: >Hi, > >I am porting my chess program to 64 bit on an AMD64 Athlon processor. I have >noticed that, with gcc, sizeof(int)=4. I would have expected sizeof(int)=8. On >32-bit platforms, 32-bit variables are faster than 16-bit variables. I wonder if >64-bit variables are faster than 32-bit variables on 64-bit machines. I have >made a few experiments and did not notice much difference. > >Rémi If you are using a recent version of gcc, you should be able to use C99 standard and force the integer values to certain size independently of the architecture. This means using uint64_t, uint32_t, etc. If you perform a lot of operations on integers, specially 64 bit values, you should be able to experience faster execution of your program.
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.