RE: [GD-General] meaning of sizeof(int) on all plateform
Brought to you by:
vexxed72
From: <phi...@pl...> - 2003-06-26 19:43:31
|
IIRC, the only thing you can guarantee about the various int sizes is t= hat: sizeof(long) >=3D sizeof(int) >=3D sizeof(short) >=3D sizeof(char) similarly for floats: sizeof(double) >=3D sizeof(float) Cheers, Phil = Gareth Lewin = <GL...@cl... = .uk> = To Sent by: gam...@li...urc= efo gamedevlists-gene rge.net = ral-admin@lists.s = cc ourceforge.net = Subj= ect RE: [GD-General] meaning of = 06/26/2003 11:42 sizeof(int) on all plateform = AM = = = Please respond to = gamedevlists-gene = ra...@li...urcef = orge.net = = = sizeof(int) =3D size of integer value. As defined by the compiler vendo= r. There is no "Correct" way to set the size of int. -----Original Message----- From: Lagarde S=E9bastien [mailto:Lag...@wa...] Sent: 26 June 2003 19:36 To: gam...@li... Subject: [GD-General] meaning of sizeof(int) on all plateform Hello all, I have some problem to define what represent sizeof(int). IMO sizeof(int) =3D=3D memory bus address width but on platforme like PS2, you have a bus of 128 and sizeof(int) =3D=3D= 32. i have seen elsewherre that sizeof(int) =3D=3D size of a register. Is someone have some information on this point ? thanks ------------------------------- Lagarde S=E9bastien Neko entertainment Junior programmer = |