lib8: trig: style++
This commit is contained in:
parent
2c7d1d2888
commit
d17baa754f
@ -31,11 +31,11 @@ impl Trig8 for u8 {
|
||||
}
|
||||
y = y.wrapping_add(128u8 as i8);
|
||||
return y as u8;
|
||||
}
|
||||
}
|
||||
|
||||
fn cos8(self) -> u8 {
|
||||
sin8(self.wrapping_add(64))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Trig8 for usize {
|
||||
|
Loading…
x
Reference in New Issue
Block a user