Commit d6a00a8f authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Merge branch 'fix_pair_vec_exit_iteration' into 'master'

Fix pair vec exit iteration

See merge request !447
parents 38d4d57f 2be1c048
......@@ -1169,7 +1169,7 @@ void runner_dopair1_density_vec(struct runner *r, struct cell *ci,
int exit_iteration_align = exit_iteration - first_pi;
/* Pad the exit iteration align so cache reads are aligned. */
const int rem = (ci_cache_count - exit_iteration_align) % VEC_SIZE;
const int rem = exit_iteration_align % VEC_SIZE;
if (exit_iteration_align < VEC_SIZE) {
exit_iteration_align = 0;
} else
......@@ -1532,7 +1532,7 @@ void runner_dopair2_force_vec(struct runner *r, struct cell *ci,
int exit_iteration_align = exit_iteration - first_pi;
/* Pad the exit iteration align so cache reads are aligned. */
const int rem = (ci_cache_count - exit_iteration_align) % VEC_SIZE;
const int rem = exit_iteration_align % VEC_SIZE;
if (exit_iteration_align < VEC_SIZE) {
exit_iteration_align = 0;
} else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment