Richard Neill <[EMAIL PROTECTED]> wrote:
> I thought testing for overflow was quite simple?
> Isn't it just a case of looking at the carry-bit, and seeing whether it 
> gets set?

That's usually how it's done in assembly.  In C, it's somewhat more
compilcated.  For example:
result=a*b;
if (result/a!=b) { report overflow; }


paul


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to