Lots of neat ideas here!!
Might as well offer mine:
convert a,b to their % of 0xFFFFFFFFF, add the two together, if the
result is greater than 100% then error.
Give 20 programmers 1 problem and you'll have 20 different solutions
:)
>
>Suppose I use C in CW and I have
>
>UInt32 a, b;
>
>How can I determine if "a" and "b" are "huge" then (a + b) is not beyond
>0xFFFFFFFFF [max UInt32]?
>
>Is there a standard way of doing it?
>
>E.g, can I check if (a + b < a || a + b < b)? Does this make sense? Does my
>question make sense?
>
>Best regards, Paul
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/