X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Sterten AT aol DOT com Message-ID: <140.3ef15c87.2f500941@aol.com> Date: Thu, 24 Feb 2005 23:53:21 EST Subject: long long To: djgpp AT delorie DOT com MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-----------------------------1109307201" X-Mailer: 9.0 SE for Windows sub 5003 Reply-To: djgpp AT delorie DOT com -------------------------------1109307201 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit >DJGPP already supports 64-bit variables: there's the `long long' data >type which is 64-bit wide. very good ! Thanks. I didn't know that. Probably because it's different in other compilers so when someone sends me a program which uses 64-bit then I can't compile it. #define int long long //#define %i %Li , this doesn't work int i,j; main(){ i=13267364410352; m1:printf("short:%i long:%Li\n",i,i); //this doesn't work. Why ? printf("short:%i ",i);printf("long:%Li\n",i); //this works if(i%2==0){i=i/2;goto m1;} } -------------------------------1109307201 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable
 >DJGPP already supports 64-bit variables: there's the `long lo= ng'=20 data
 >type which is 64-bit wide.
 

very good ! Thanks. I didn't know that. Probably because it's=20 different
in other compilers so when someone sends me a program which use= s=20 64-bit
then I can't compile it.
 
#define int long long
//#define %i %Li  , this doesn't work
= int=20 i,j;
main(){
   i=3D13267364410352;
m1:printf("short:%i=20 long:%Li\n",i,i); //this doesn't work. Why ?
   printf("short:%= i=20 ",i);printf("long:%Li\n",i); //this works
   if(i%2=3D=3D0){i= =3Di/2;goto=20 m1;}
}
-------------------------------1109307201--