gallivm: add a log function that handles edge cases
authorZack Rusin <zackr@vmware.com>
Thu, 18 Jul 2013 07:32:02 +0000 (03:32 -0400)
committerZack Rusin <zackr@vmware.com>
Fri, 19 Jul 2013 20:29:18 +0000 (16:29 -0400)
commitf7c06785d08156320836ee94552e7f89e1542647
tree35d718c0112585aa719445fc179fe54e52e37858
parent018c69ac56ee0579b5d4f138340444b326c4e6dc
gallivm: add a log function that handles edge cases

Same as log2_safe, which means that it can handle infs, 0s and
nans.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_arit.c
src/gallium/auxiliary/gallivm/lp_bld_arit.h