Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advLigoRTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
CDS
software
advLigoRTS
Commits
f56b6866
Commit
f56b6866
authored
3 years ago
by
Ezekiel Dohmen
Browse files
Options
Downloads
Patches
Plain Diff
Adding static to functions that use static globals
parent
26527208
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!439
RCG 5.0 release fro deb 10
,
!310
Noise.pm code generation cleanup
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/epics/util/lib/Noise.pm
+3
-3
3 additions, 3 deletions
src/epics/util/lib/Noise.pm
with
3 additions
and
3 deletions
src/epics/util/lib/Noise.pm
+
3
−
3
View file @
f56b6866
...
...
@@ -38,7 +38,7 @@ sub printFrontEndVars {
print
::
OUT
<<
"
END
";
static
unsigned
long
noise_seed
=
4101842887655102017
LL
;
\
n
static
unsigned
long
noise_u
,
noise_v
,
noise_w
;
inline
unsigned
long
noise_int64
()
{
static
inline
unsigned
long
noise_int64
()
{
noise_u
=
noise_u
*
2862933555777941757
LL
+
7046029254386353087
LL
;
noise_v
^=
noise_v
>>
17
;
noise_v
^=
noise_v
<<
31
;
noise_v
^=
noise_v
>>
8
;
noise_w
=
4294957665
U
*
(
noise_w
&
0xffffffff
)
+
(
noise_w
>>
32
);
...
...
@@ -46,8 +46,8 @@ inline unsigned long noise_int64() {
noise_x
^=
noise_x
>>
35
;
noise_x
^=
noise_x
<<
4
;
return
(
noise_x
+
noise_v
)
^
noise_w
;
}
inline
double
noise_doub
()
{
return
5.42101086242752217E-20
*
noise_int64
();
}
inline
void
noise_ran
(
unsigned
long
j
)
{
static
inline
double
noise_doub
()
{
return
5.42101086242752217E-20
*
noise_int64
();
}
static
inline
void
noise_ran
(
unsigned
long
j
)
{
noise_v
=
4101842887655102017
LL
;
noise_w
=
1
;
noise_u
=
j
^
noise_v
;
noise_int64
();
...
...
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