Skip to content

Commit

Permalink
Merge 407b841 into 5ec045c
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed Jul 20, 2019
2 parents 5ec045c + 407b841 commit 0939e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const DQP_Q57: &[i64; FRAME_NSUBTYPES] = &[
// This is the number of bits that would be required to represent v in two's
// complement notation with all of the leading zeros stripped.
// TODO: Mark const once leading_zeros() as a constant function stabilizes.
fn ilog64(v: i64) -> i32 {
const fn ilog64(v: i64) -> i32 {
64 - (v.leading_zeros() as i32)
}

Expand Down

0 comments on commit 0939e77

Please sign in to comment.