At some point, someone is going to have to explain why - despite nobody ever wanting this in production code ever, for any reason - the default CSR state for divide by zero on most platforms is fault instead of flush.
-
-
Interesting, can you give an example? (Genuine question of course. Always wise to say that on Twitter
) -
Yes, certainly. Simplest is the oft-occurring form: int Step = Width / Count; for(int I = 0; I < Count; ++I) { // ... Step used here ... } With exceptions, this faults. Without exceptions, it runs as expected, since a zero count means the loop is never entered.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.