short int in C

Discussion about everything. New games, 3d math, development tips...
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Does normal int's size is the size of the computer's registers?
e.g, on a 512 bit system (in the future) an int would be 512 bit long and long maybe 1024 bit?
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Mirror
Posts: 218
Joined: Sat Dec 01, 2007 4:09 pm

Post by Mirror »

MasterGod wrote:Does normal int's size is the size of the computer's registers?
e.g, on a 512 bit system (in the future) an int would be 512 bit long and long maybe 1024 bit?
that's how it should be imho, always int equal to the registers size and long, double that size.
thephoenix
Posts: 19
Joined: Wed Jan 25, 2006 7:44 pm

Post by thephoenix »

http://en.wikipedia.org/wiki/64-bit#64-bit_data_models

Here on Linux an int on amd64 is always 32bit long.
Post Reply