Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zell
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zell
Software
Zell
Commits
f64bf511
Unverified
Commit
f64bf511
authored
May 19, 2023
by
Jayesh Badwaik
Browse files
Options
Downloads
Patches
Plain Diff
- testzell::pcg: make lowering precision explicit
parent
5aa905b6
No related branches found
No related tags found
No related merge requests found
Pipeline
#139446
passed
May 19, 2023
Stage: .pre
Stage: Test
Stage: .post
Changes
1
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/common/cpp/lib/testzell/pcg.cpp
+1
-1
1 addition, 1 deletion
test/common/cpp/lib/testzell/pcg.cpp
with
1 addition
and
1 deletion
test/common/cpp/lib/testzell/pcg.cpp
+
1
−
1
View file @
f64bf511
...
...
@@ -14,7 +14,7 @@ auto pcg32_random(state32* rng) -> uint32_t
rng
->
state
=
(
rng
->
state
)
*
0X5851F42D4C957F2DULL
;
// NOLINTNEXTLINE(hicpp-signed-bitwise)
rng
->
state
+=
(
rng
->
stream
|
1
);
const
uint32_
t
xorshifted
=
((
old
>>
18U
)
^
old
)
>>
27U
;
auto
cons
t
xorshifted
=
static_cast
<
uint32_t
>
(
((
old
>>
18U
)
^
old
)
>>
27U
)
;
const
uint32_t
rot
=
old
>>
59U
;
// NOLINTNEXTLINE(hicpp-signed-bitwise)
return
(
xorshifted
>>
rot
)
|
(
xorshifted
<<
((
-
rot
)
&
31
));
...
...
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
sign in
to comment