Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
c4f52b6d
Commit
c4f52b6d
authored
9 years ago
by
Angus Lepper
Browse files
Options
Downloads
Patches
Plain Diff
Avoid duplicate runner_hist_bins
parent
4a6b7dc3
No related branches found
No related tags found
1 merge request
!63
OS X-flavoured build fixes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/runner.c
+3
-0
3 additions, 0 deletions
src/runner.c
src/runner.h
+1
-1
1 addition, 1 deletion
src/runner.h
with
4 additions
and
1 deletion
src/runner.c
+
3
−
0
View file @
c4f52b6d
...
...
@@ -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
];
...
...
This diff is collapsed.
Click to expand it.
src/runner.h
+
1
−
1
View file @
c4f52b6d
...
...
@@ -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( \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment