Skip to content

Commit

Permalink
fn init_edges: Reverse the order of double initializations to be me…
Browse files Browse the repository at this point in the history
… more idiomatic.
  • Loading branch information
kkysen committed Aug 24, 2023
1 parent c878d71 commit eb6fa7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/intra_edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ unsafe fn init_edges(node: *mut EdgeNode, bl: BlockLevel, edge_flags: EdgeFlags)

nwc.h4[0] = edge_flags
| (EDGE_I444_LEFT_HAS_BOTTOM | EDGE_I422_LEFT_HAS_BOTTOM | EDGE_I420_LEFT_HAS_BOTTOM);
nwc.h4[2] =
nwc.h4[1] =
EDGE_I444_LEFT_HAS_BOTTOM | EDGE_I422_LEFT_HAS_BOTTOM | EDGE_I420_LEFT_HAS_BOTTOM;
nwc.h4[1] = nwc.h4[2];
nwc.h4[2] = nwc.h4[1];
nwc.h4[3] = edge_flags
& (EDGE_I444_LEFT_HAS_BOTTOM | EDGE_I422_LEFT_HAS_BOTTOM | EDGE_I420_LEFT_HAS_BOTTOM);
if bl == BL_16X16 {
Expand All @@ -101,8 +101,8 @@ unsafe fn init_edges(node: *mut EdgeNode, bl: BlockLevel, edge_flags: EdgeFlags)

nwc.v4[0] = edge_flags
| (EDGE_I444_TOP_HAS_RIGHT | EDGE_I422_TOP_HAS_RIGHT | EDGE_I420_TOP_HAS_RIGHT);
nwc.v4[2] = EDGE_I444_TOP_HAS_RIGHT | EDGE_I422_TOP_HAS_RIGHT | EDGE_I420_TOP_HAS_RIGHT;
nwc.v4[1] = nwc.v4[2];
nwc.v4[1] = EDGE_I444_TOP_HAS_RIGHT | EDGE_I422_TOP_HAS_RIGHT | EDGE_I420_TOP_HAS_RIGHT;
nwc.v4[2] = nwc.v4[1];
nwc.v4[3] = edge_flags
& (EDGE_I444_TOP_HAS_RIGHT | EDGE_I422_TOP_HAS_RIGHT | EDGE_I420_TOP_HAS_RIGHT);
if bl == BL_16X16 {
Expand Down

0 comments on commit eb6fa7a

Please sign in to comment.