Realm

oa::crypto::bigint::leading_zeros

Compute batched unsigned limb leading zeros. Operands are public U32 [batch, words] rows of little-endian limbs, with 1..=128 words (32..=4096 bits). Records device work without host reads or a host wait. This public-data route does not accept cryptographic secrets and makes no constant-time or performance claim. Returns U32 [batch] leading-zero counts in the complete operand width; zero returns width_bits. Errors Rejects rank, dtype, shape, ownership, address limits, allocation or recording failures.

FnRust public API

Function Documentation

pub fn leading_zeros( left: &Matrix ) -> Result<Matrix>
Compute batched unsigned limb leading zeros. Operands are public U32 [batch, words] rows of little-endian limbs, with 1..=128 words (32..=4096 bits). Records device work without host reads or a host wait. This public-data route does not accept cryptographic secrets and makes no constant-time or performance claim. Returns U32 [batch] leading-zero counts in the complete operand width; zero returns width_bits. Errors Rejects rank, dtype, shape, ownership, address limits, allocation or recording failures.