MCPcopy Create free account
hub / github.com/apache/arrow-rs / trailing_zeros

Method trailing_zeros

arrow-buffer/src/bigint/mod.rs:599–604  ·  view source on GitHub ↗

Returns the number of trailing zeros in the binary representation of this [`i256`].

(&self)

Source from the content-addressed store, hash-verified

597
598 /// Returns the number of trailing zeros in the binary representation of this [`i256`].
599 pub const fn trailing_zeros(&self) -> u32 {
600 match self.low {
601 0 => u128::BITS + self.high.trailing_zeros(),
602 _ => self.low.trailing_zeros(),
603 }
604 }
605
606 fn redundant_leading_sign_bits_i256(n: i256) -> u8 {
607 let mask = n >> 255; // all ones or all zeros

Callers 4

advance_to_set_bitMethod · 0.80
nextMethod · 0.80
iter_set_bits_revFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected