forked from personal/squiggle.c
formatting pass.
This commit is contained in:
parent
dd6bb53f1b
commit
eb1c592610
|
@ -72,9 +72,9 @@ void sampler_parallel(double (*sampler)(uint64_t* seed), double* results, int n_
|
||||||
// In principle, these results[j] could also result in two threads competing for the same cache line.
|
// In principle, these results[j] could also result in two threads competing for the same cache line.
|
||||||
// In practice, though,
|
// In practice, though,
|
||||||
// a) this would happen infrequently
|
// a) this would happen infrequently
|
||||||
// b)
|
// b) trying to unroll loops actually makes the code slower
|
||||||
|
// c) 8 results[j] are 8 doubles, which fit a cache line. If n_samples/n_threads
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (int j = divisor_multiple; j < n_samples; j++) {
|
for (int j = divisor_multiple; j < n_samples; j++) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user