mbcnt_hi in core::arch::amdgpu - Rust
Description: Masked bit count, high 32 lanes.

Skip to main content

## mbcnt_hi

# Function mbcnt_hi

Source

    pub fn mbcnt_hi(value: u32, init: u32) -> u32

🔬This is a nightly-only experimental API. (`stdarch_amdgpu` #149988)
Available on `target_arch=amdgpu` only.
Expand description

Masked bit count, high 32 lanes.

Computes the number of bits set in `value`, masked with a thread mask which contains 1 for all active threads less than the current thread within a wavefront. `init` is added to the result.