Skip to content

Commit

Permalink
bitwise logic simplifications
Browse files Browse the repository at this point in the history
Co-authored-by: Khyber Sen <[email protected]>
  • Loading branch information
folkertdev and kkysen authored Feb 29, 2024
1 parent 49b8c87 commit b20c74d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/intra_edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl EdgeTip {
let node = EdgeNode { o, h, v };

let split = [
EdgeFlags::union_all([EdgeFlags::TOP_HAS_RIGHT, EdgeFlags::LEFT_HAS_BOTTOM]),
EdgeFlags::all(),
edge_flags
.intersection(EdgeFlags::TOP_HAS_RIGHT)
.union(EdgeFlags::I422_LEFT_HAS_BOTTOM),
Expand Down Expand Up @@ -184,8 +184,8 @@ impl EdgeBranch {
EdgeFlags::TOP_HAS_RIGHT.union(
edge_flags
.intersection(EdgeFlags::union_all([
edge_flags.intersection(EdgeFlags::I420_LEFT_HAS_BOTTOM),
edge_flags.intersection(EdgeFlags::I422_LEFT_HAS_BOTTOM),
EdgeFlags::I420_LEFT_HAS_BOTTOM,
EdgeFlags::I422_LEFT_HAS_BOTTOM,
]))
.select(bl == BL_16X16),
),
Expand Down

0 comments on commit b20c74d

Please sign in to comment.