Skip to content

Commit

Permalink
use EdgeFlags::union_all in one more place
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Feb 28, 2024
1 parent 63311df commit 69fb14b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/intra_edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,13 @@ impl<const SB128: bool, const N_BRANCH: usize, const N_TIP: usize>
top_has_right: bool,
left_has_bottom: bool,
) -> (Self, EdgeIndices) {
let thr = EdgeFlags::TOP_HAS_RIGHT.select(top_has_right);
let lhb = EdgeFlags::LEFT_HAS_BOTTOM.select(left_has_bottom);
let mut branch = EdgeBranch::new(thr.union(lhb), bl);
let mut branch = EdgeBranch::new(
EdgeFlags::union_all([
EdgeFlags::TOP_HAS_RIGHT.select(top_has_right),
EdgeFlags::LEFT_HAS_BOTTOM.select(left_has_bottom),
]),
bl,
);
if bl == BL_16X16 {
let mut n = 0;
while n < B as u8 {
Expand Down

0 comments on commit 69fb14b

Please sign in to comment.