>>>>> "MD" == Mike Davis <[EMAIL PROTECTED]> writes:
MD> Is there a method (or algorigthm) for dealing with 64 bit integers 
MD> using only 32 bit data types?

CodeWarrior, have flags to supports long long ( or was it longlong?
) keyword, which stands for 64bit fixed point variable. GCC, as
default, also supports keyword "long long" for 64bit fixed point
variable.

Are you talking about the way to handle 64bit fixed point without
using these?

If you do not have to take care of compatibility with other
platforms, I recommend using "long long". 


Even if you can't use these keywords for compatibility, yes there
are algorithm for dealing these. It's basically exactly the same as
how you calculate by hand, only, instead of using decimal, you are 
using 4294967296-mal (^o^) for add/subtraction, and 65536-mal for
multiply and divide.

If you are looking for a good "code" ... I'm sorry. I do know the
good book, but it's written in Japanese.


regards,

Reply via email to