Skip to content

Commit

Permalink
fix(issue-#16): add offset when convert coitee to iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
cauliyang committed Jan 31, 2024
1 parent 319dd20 commit e1e9036
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/avx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,8 @@ where
let node = &self.nodes[self.i];
if self.j < 8 {
let ret = Some(Interval {
first: node.first(self.j),
last: node.last(self.j),
first: node.first(self.j) + 1,
last: node.last(self.j) - 1,
metadata: &node.metadata[self.j],
});
self.count += 1;
Expand Down Expand Up @@ -651,8 +651,8 @@ where
let node = &self.nodes[self.i];
self.count += 1;
Some(Interval {
first: node.first(self.j),
last: node.last(self.j),
first: node.first(self.j) + 1,
last: node.last(self.j) - 1,
metadata: &node.metadata[self.j],
})
}
Expand Down
8 changes: 4 additions & 4 deletions src/neon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ where
let node = &self.nodes[self.i];
if self.j < LANE_SIZE {
let ret = Some(Interval {
first: node.first(self.j),
last: node.last(self.j),
first: node.first(self.j) + 1,
last: node.last(self.j) - 1,
metadata: &node.metadata[self.j],
});
self.count += 1;
Expand Down Expand Up @@ -548,8 +548,8 @@ where
let node = &self.nodes[self.i];
self.count += 1;
Some(Interval {
first: node.first(self.j),
last: node.last(self.j),
first: node.first(self.j) + 1,
last: node.last(self.j) - 1,
metadata: &node.metadata[self.j],
})
}
Expand Down

0 comments on commit e1e9036

Please sign in to comment.