Skip to content

Commit

Permalink
transform: use msb
Browse files Browse the repository at this point in the history
  • Loading branch information
tmatth committed Dec 30, 2018
1 parent 37795e5 commit c89f558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform/mod.rs
Expand Up @@ -25,7 +25,7 @@ static INV_SQRT2: i32 = 2896; // 2^12 / sqrt(2)
#[inline]
pub fn get_rect_tx_log_ratio(col: usize, row: usize) -> i8 {
debug_assert!(col > 0 && row > 0);
col.ilog() as i8 - row.ilog() as i8
(msb(col as i32) - msb(row as i32)) as i8
}

// performs half a butterfly
Expand Down

0 comments on commit c89f558

Please sign in to comment.