Searched refs:bit (Results 1 – 6 of 6) sorted by relevance
27 let bit = <T as BitOps>::get(element, bit_index); in get() localVariable29 Some(bit) in get()41 let bit = <T as BitOps>::set(element, bit_index, value); in set() localVariable43 Some(bit) in set()63 let bit = <T as BitOps>::first_index(element); in first_index() localVariable64 if bit.is_some() { in first_index()65 return Some(i * T::bit_size() + bit.unwrap()); in first_index()75 if let Some(bit) = <T as BitOps>::first_false_index(element) { in first_false_index()76 return self.make_index(n, i * T::bit_size() + bit); in first_false_index()86 if let Some(bit) = <T as BitOps>::last_index(element) { in last_index()[all …]
50 - ffz函数:获取u64中的第一个值为0的bit (#100)265 * ffz函数:获取u64中的第一个值为0的bit
792 let bit = self.get_fat_entry_raw(Cluster::new(1))? & 0x0800_0000; in is_shut_bit_ok() localVariable793 return Ok(bit > 0); in is_shut_bit_ok()796 let bit = self.get_fat_entry_raw(Cluster::new(1))? & 0x8000; in is_shut_bit_ok() localVariable797 return Ok(bit > 0); in is_shut_bit_ok()814 let bit = self.get_fat_entry_raw(Cluster::new(1))? & 0x0400_0000; in is_hard_error_bit_ok() localVariable815 return Ok(bit > 0); in is_hard_error_bit_ok()818 let bit = self.get_fat_entry_raw(Cluster::new(1))? & 0x4000; in is_hard_error_bit_ok() localVariable819 return Ok(bit > 0); in is_hard_error_bit_ok()
72 …lopment of this project. The list of all sponsors will be published. Every bit of your sponsorship…117 - Implementation of a 64 bit operating system, Tian Yu (POSTS&TELECOM PRESS)
787 pub fn test_and_set_bit(&mut self, bit: ThreadedHandlerFlags) -> bool { in test_and_set_bit()788 let res = (self.bits & bit.bits) != 0; in test_and_set_bit()789 self.bits |= bit.bits; in test_and_set_bit()
144 is a bit different here, but conceptually so).