A college of mine is working with egcs.  I realize this isn't strictly
Linux-oriented, but it raised my curiosity - how does one deal with >64
bit ints with egcs/gcc?

---------- Forwarded message ----------
Subject: gnu c large int's

I'm trying to get some code working under Windows using Cygnus's g++, using
128-bit ints, using

typef long int128 __attribute__ ((mode(TI)));

First off, I'm getting link error'ss when I try to basic arithmetic on
them -

        multiplacation needs __multi3
        shift right needs    __ashrti3

and so on (addition seems ok). I can't find these functions in any of the
supplied libraries... or are these unimplemented RTF functions ?

Also, if I can get this working, any ideas on how to printf a large int ?
Variable arguments are a pain in the arse, coz normally everythings
converted to 'long' on the stack... but obviously the high order bits will
drop off in the conversion of an int128...

Thanks for any help....

Reply via email to