Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19362>
libmesa_rust_util_files = files(
'util/lib.rs',
'util/assert.rs',
+ 'util/bitset.rs',
'util/properties.rs',
'util/ptr.rs',
'util/string.rs',
--- /dev/null
+pub fn test_bit(bitset: &[u32], bit: u32) -> bool {
+ let idx = bit / 32;
+ let test = bit % 32;
+
+ bitset[idx as usize] & (1 << test) != 0
+}
pub mod assert;
+pub mod bitset;
pub mod math;
pub mod properties;
pub mod ptr;