Add a testbit() operationg.

This commit is contained in:
2018-12-23 21:05:27 -08:00
parent 85165c7f68
commit 70a082363a
62 changed files with 429542 additions and 311395 deletions

View File

@@ -87,6 +87,10 @@ macro_rules! signed_impls {
fn mask(&mut self, len: usize) {
self.value.mask(len);
}
fn testbit(&self, bit: usize) -> bool {
self.value.testbit(bit)
}
}
#[cfg(test)]