is it possible/efficient to put fpu exception or inf into work? <p>I got such code </p> <p>loop 10 M: </p> <pre><code> if( fz != 0.0) { fhx += hx/fz; } </code></pre> <p>this is called 10 M times in loop needs to be very fast - I onlly need to catch the case when fz is not zero, not to make div by zero error, but it is a very rare case, indeed on 10M cases it should be zero, i dont know once , twice or newer </p> <p>can i in some way get rid of this 10M of ifs and use "nan/inf" or maybe catching the exception and continue? (if fz is zero i need fhx += 0.0, i mean nothing just continue ? is it possible/efficient to put fpu exception or inf into work?</p> <p>(Im using c++/mingw32)</p>