Mail Archives: djgpp/2000/01/06/03:55:31
Rob McCrea (r_mccrea AT hotmail DOT com) wrote:
: My expression won't recognize the overflow...
:
: while ((s+1) > s) s++;
:
: is an infinite loop. What's up with that?
: Apparently the condition is being evaluted as (1>0).
: That's not right is it? I'm compiling with gpp -Wall testsize.cpp -o
: testsize.exe.
:
: Please, can someone explain why its not acting like a computer?
Don't know. But you should compile _with_ optimisations (-O2).
: On the subject that led me on the above side-trip, I need a library
: that will allow me to use much larger (non-float and unsigned)
: integers. unsigned long long fails at 2^64 of course. I will want to
: calculate up to 2^10000000 for starters, but anything that will allow
: greater than 2^64 is an improvement (I'm hoping to find a type that
: would only be limited by the amount of freespace on your hardrive).
: Any base will work. I need multiplication (or exponential), division
: (or modulo), and subtraction. If you know of one, please reply.
String based calculations or similar.
Right,
MartinS
- Raw text -