Forums before death by AOL, social media and spammers... "We can't have nice things"
|    sci.math.symbolic    |    Symbolic algebra discussion    |    10,432 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 8,772 of 10,432    |
|    jacob navia to All    |
|    Re: Test for overflow    |
|    31 Mar 15 19:48:53    |
      XPost: comp.lang.c       From: jacob@jacob.remcomp.fr              Le 31/03/2015 19:41, James Kuyper a écrit :       > I think so, so long as 'digit' is no wider than 'value'              "Value" is an unsigned long long. To be able to overflow by adding a       number smaller than 37, "value" *must* be bigger than 2^64 - 37.              If an overflow occurs, at most the last 6 bits could be set, what is       surely smaller than a number that is bigger thzn 2^64 - 37!!              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca