FWIW I agree with a number of people here.
While on the surface it seems reasonable to replace x/0 with MAXFloat, I really think in general the IEEE solution is the better one.
If your going to divide by Zero you should know that it could happen.
I suspect though that the NVidia issue is more about writing 32 bit fp values into 16 bit fp Values (The frame buffer) and numeric overflow in that case. I'm speculating here.
This is somewhat more questionable behaviour, but IMO it's still reasonable, and it's 1 instruction to fix it.
I think where the question gets interesting is where there are no CPU counterparts to the ops what does INF do in a clamp operation (FWIW I think it's pretty well defined)? etc.
While on the surface it seems reasonable to replace x/0 with MAXFloat, I really think in general the IEEE solution is the better one.
If your going to divide by Zero you should know that it could happen.
I suspect though that the NVidia issue is more about writing 32 bit fp values into 16 bit fp Values (The frame buffer) and numeric overflow in that case. I'm speculating here.
This is somewhat more questionable behaviour, but IMO it's still reasonable, and it's 1 instruction to fix it.
I think where the question gets interesting is where there are no CPU counterparts to the ops what does INF do in a clamp operation (FWIW I think it's pretty well defined)? etc.