diff options
author | Dylan Baker <[email protected]> | 2018-09-06 11:36:19 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2020-04-21 11:09:03 -0700 |
commit | e533fad182e7069ee0850154f51316dd779501c3 (patch) | |
tree | aa38ebcd833ad137faf53889fea2202bac7e9eab /src/util/os_socket.h | |
parent | c1e7c1f4224789f0bc4cc847cecde350e2c6d2f2 (diff) |
replace _mesa_is_pow_two with util_is_power_of_two_*
Mostly this uses util_is_power_of_two_or_zero, which has the same
behavior as _mesa_is_pow_two when the input is zero. In cases where the
value is known to be != 0 ahead of time I used the _nonzero variant as
it may be faster on some platforms.
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3024>
Diffstat (limited to 'src/util/os_socket.h')
0 files changed, 0 insertions, 0 deletions