RE: [GD-General] meaning of sizeof(int) on all plateform
Brought to you by:
vexxed72
From: Mick W. <mi...@ne...> - 2003-06-26 19:39:54
|
128 bits would give you 16 bytes, not 32. =20 On the PS2 an int is generally 32 BITS, (4 bytes), which is maybe where the confusion arose. =20 Mick -----Original Message----- From: gam...@li... [mailto:gam...@li...] On Behalf Of Gareth Lewin Sent: Thursday, June 26, 2003 11:42 AM To: gam...@li... Subject: RE: [GD-General] meaning of sizeof(int) on all plateform sizeof(int) =3D size of integer value. As defined by the compiler = vendor. 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,=20 I have some problem to define what represent sizeof(int). =20 IMO sizeof(int) =3D=3D memory bus address width =20 but on platforme like PS2, you have a bus of 128 and sizeof(int) =3D=3D = 32. =20 i have seen elsewherre that sizeof(int) =3D=3D size of a register. =20 Is someone have some information on this point ? thanks ------------------------------- Lagarde S=E9bastien Neko entertainment Junior programmer =20 |