refactor: fix broken gfmil algo
This commit is contained in:
parent
ccf0b03ec0
commit
2e22bd5789
3 changed files with 73 additions and 9 deletions
|
|
@ -92,6 +92,10 @@ impl ByteArray {
|
|||
(self.0.first().unwrap() & 1) == 1
|
||||
}
|
||||
|
||||
pub fn msb_is_one(&self) -> bool {
|
||||
(self.0.last().unwrap() & 1) == 1
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
for i in self.0.iter() {
|
||||
if *i != 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue