mirror of
https://github.com/chronotope/chrono.git
synced 2025-10-02 07:21:41 +00:00
Casting a positive i8
through u8
is slightly faster
This commit is contained in:
parent
6eec070603
commit
e3ff4bc1d2
@ -327,7 +327,7 @@ impl Mdf {
|
||||
let mdl = self.0 >> 3;
|
||||
match MDL_TO_OL[mdl as usize] {
|
||||
XX => None,
|
||||
v => Some((mdl - v as i32 as u32) >> 1),
|
||||
v => Some((mdl - v as u8 as u32) >> 1),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user