Skip to content

gallivm: return 1 for pow(0, 0)

Jan Zielinski requested to merge jzielins/mesa:llvmpipe-fix-pow-0-0 into main

Commit d12cdc93 changed the behavior of pow function: pow(0, 0) case used to return 1, but after the change it started to return 0.

Since 1 generally seems more correct in this case, this change restores the previous behavior, keeping pow(0, y) for y != 0 to return 0.

Fixes: d12cdc93 (gallivm: fix pow(0, y) to be 0)

Closes: #3588

Edited by Jan Zielinski

Merge request reports