------- Comment #3 from pinskia at gcc dot gnu dot org 2005-10-12 16:04 ------- (In reply to comment #2) > basing on the http://en.wikipedia.org/wiki/L'hospital we get: > > lim (x / x) = lim (x' / x') = lim (1 / 1) = 1 > x->0 x->0 x->0
for float/float, we should get NANs with -ffast-math which assumes -ffinite-math, for long/long and unsigned/unsigned, we have this thing called undefinedness. BUT for java, 0/0 is defined to throw IIRC so we can only do that for signed/signed and with -fno-wrapv. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24333