summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMathias Fröhlich <mathias.froehlich@web.de>2016-05-22 14:10:19 +0200
committerMathias Fröhlich <mathias.froehlich@web.de>2016-06-16 05:50:54 +0200
commitf69a4005132e6e343ed210f288f752587c97f2f4 (patch)
tree0d20723f85d84b7e6aa2dea89a061f3a763fe975 /scripts
parent9a3fcb010c8ecbcbae0b7b299b64165051b03b85 (diff)
nouveau: Use bitmask/ffs to iterate enabled lights
Replaces a loop that iterates all lights and test which of them is enabled by a loop only iterating over the bits set in the enabled bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. v3: Use u_bit_scan{,64} instead of _mesa_bit_scan{,64}. Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions