Returns the number of trailing zeros in the binary representation of this [`i256`].
(&self)
| 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 |
no outgoing calls
no test coverage detected