64 bits int on ia32
Hi everybody,
I know the 'long long' type, I also try 'sizeof(long long)' and it returns 8. But when I use it, the max number it can store is 0xffffffff.
So, is there any way to get 64bits ints on a ia32? (of course I am talking only about the gcc compiler, I know that I can't manage those amounts of bits and store them on a general porpouse register)
Thanks in advance.
Signature · 3 lines
Ricardo Catalinas Jimenez Madrid, Spain. th1nk3r(at)server01(dot)org [email protected] My gpg public key at: http://www.server01.org/pubkey
how about using "unsigned"??
Quoted 13 lines · Ricardo Catalinas Jimenez
Hi everybody,
I know the 'long long' type, I also try 'sizeof(long long)' and it returns 8. But when I use it, the max number it can store is
0xffffffff.So, is there any way to get 64bits ints on a ia32? (of course I am talking only about the gcc compiler, I know that I can't manage those amounts of bits and store them on a general porpouse register)
Thanks in advance.
On Sat, 2004-10-09 16:17:39 +0200, Ricardo Catalinas Jimenez <[email protected]> wrote in message <[email protected]>:
Quoted 4 lines
Hi everybody,
I know the 'long long' type, I also try 'sizeof(long long)' and it returns 8. But when I use it, the max number it can store is
0xffffffff.
How did you check that this is the largest number? I guess you either used a wrong format specifier for a printf call (that'd clamp the value to it's low-order long value). Also note that you should probably add a type suffix of "LL" or "ULL" to that value, cf. 6.4.4.1 of the C99 standard.
So how did you use the long long typed variable?
MfG, JBG
Signature · 4 lines
Jan-Benedict Glaw [email protected] . +49-172-7608481 _ O _ "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
He already solved it =)
he was using the wrong formatting symbol...
Quoted 23 lines · Jan-Benedict Glaw
On Sat, 2004-10-09 16:17:39 +0200, Ricardo Catalinas Jimenez <[email protected]> wrote in message <[email protected]>:
Quoted 6 lines
Hi everybody,
I know the 'long long' type, I also try 'sizeof(long long)' and it returns 8. But when I use it, the max number it can store is
0xffffffff.How did you check that this is the largest number? I guess you either used a wrong format specifier for a printf call (that'd clamp the value to it's low-order long value). Also note that you should probably add a type suffix of "LL" or "ULL" to that value, cf. 6.4.4.1 of the C99 standard.
So how did you use the long long typed variable?
MfG, JBG