diff options
author | Jason Ekstrand <[email protected]> | 2018-12-16 00:42:01 -0600 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-12-16 21:03:02 +0000 |
commit | e17426058cd50d8302acd5155846871a2f39b408 (patch) | |
tree | e76f364634c8ce1811e7f0800d30c77454d5a001 /doxygen/gallium.doc | |
parent | 2977c777589e15ff632415ecfd3548f49f56b4d8 (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 'doxygen/gallium.doc')
0 files changed, 0 insertions, 0 deletions