mesa: Return -FLT_MAX instead of 0 for LG2(0).
authorVinson Lee <vlee@vmware.com>
Thu, 1 Oct 2009 19:33:20 +0000 (13:33 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 1 Oct 2009 19:33:20 +0000 (13:33 -0600)
commit18883cdf2334511005973155fc517eb678dc0043
treec4621af747a5073bbfa4abfe69f5752ed098adb2
parent521e4b9b7e3c79e7362f7cbd594a2e8cf74cdfe4
mesa: Return -FLT_MAX instead of 0 for LG2(0).

lim x->0 log(x) = -inf so -FLT_MAX is a better approximation than 0
for LG2(0).
src/mesa/shader/prog_execute.c