summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2013-07-16 15:57:11 -0400
committerZack Rusin <[email protected]>2013-07-19 16:29:17 -0400
commit13e2cd2f2ccb06cd6dc9acda0b6bbe268ee37879 (patch)
treec05af0756b62860ecda3a8b97ab9b7d33c072cba /src/gallium/targets
parent7b672c1503abffcc83a30a9731419539f52ac73f (diff)
gallivm: add a version of log2 which handles edge cases
That means that if input is: * - less than zero (to and including -inf) then NaN will be returned * - equal to zero (-denorm, -0, +0 or +denorm), then -inf will be returned * - +infinity, then +infinity will be returned * - NaN, then NaN will be returned It's a separate function because the checks are a little bit costly and in most cases are likely unnecessary. Signed-off-by: Zack Rusin <[email protected]> Reviewed-by: Jose Fonseca <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/targets')
0 files changed, 0 insertions, 0 deletions