summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-12-16 00:42:01 -0600
committerJason Ekstrand <[email protected]>2018-12-16 21:03:02 +0000
commite17426058cd50d8302acd5155846871a2f39b408 (patch)
treee76f364634c8ce1811e7f0800d30c77454d5a001 /src/gallium/auxiliary
parent2977c777589e15ff632415ecfd3548f49f56b4d8 (diff)
nir/lower_idiv: Use ilt instead of bit twiddling
The previous code was creating a boolean by doing an arithmetic right- shift by 31 which produces a boolean which is true if the argument is negative. This is the same as the expression r < 0 which is much simpler and doesn't depend on NIR's representation of booleans. Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
0 files changed, 0 insertions, 0 deletions