diff options
author | Ian Romanick <[email protected]> | 2016-07-12 17:40:48 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-08-30 16:28:01 -0700 |
commit | 6d5fe1815c96b849aaf08f31c11d9ad4fe2b4769 (patch) | |
tree | 69ec322fda71fccbac55c4d79782874be33a215a /src/compiler/glsl/standalone_scaffolding.cpp | |
parent | 5c24750a49b7c39f35600b25ece05f908d59f170 (diff) |
glsl: Use find_msb_uint to implement ir_unop_find_lsb
(X & -X) calculates a value with only the least significant bit of X
set. Since there is only one bit set, the LSB is the MSB.
v2: Remove extra int() cast. Suggested by Matt.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler/glsl/standalone_scaffolding.cpp')
0 files changed, 0 insertions, 0 deletions