Skip to content
Snippets Groups Projects
Commit c4f52b6d authored by Angus Lepper's avatar Angus Lepper
Browse files

Avoid duplicate runner_hist_bins

parent 4a6b7dc3
No related branches found
No related tags found
1 merge request!63OS X-flavoured build fixes
......@@ -54,6 +54,9 @@
#define cell_getid(cdim, i, j, k) \
((int)(k) + (cdim)[2] * ((int)(j) + (cdim)[1] * (int)(i)))
/* Histograms bins. */
long long int runner_hist_bins[runner_hist_N];
/* The counters. */
int runner_counter[runner_counter_count];
......
......@@ -58,7 +58,7 @@ extern int runner_counter[runner_counter_count];
#define runner_hist_a 1.0
#define runner_hist_b 100.0
#define runner_hist_N 99
long long int runner_hist_bins[runner_hist_N];
extern long long int runner_hist_bins[runner_hist_N];
#define runner_hist_hit(x) \
__sync_add_and_fetch( \
&runner_hist_bins[(int)fmax( \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment