Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
78feaa4b
Commit
78feaa4b
authored
Aug 21, 2018
by
Paul
Browse files
Fix ice on gcc
parent
611bc847
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/include/migraph/generate.hpp
src/include/migraph/generate.hpp
+7
-2
No files found.
src/include/migraph/generate.hpp
View file @
78feaa4b
...
...
@@ -30,13 +30,18 @@ constexpr T normalize(unsigned long z)
return
z
%
max
;
}
template
<
class
T
>
struct
xorshf96_generator
{
unsigned
long
seed
=
0
;
unsigned
long
x
=
123456789
;
unsigned
long
y
=
362436069
;
unsigned
long
z
=
521288629ULL
^
seed
;
unsigned
long
z
;
xorshf96_generator
(
unsigned
long
seed
=
0
)
:
z
(
521288629ULL
^
seed
)
{}
constexpr
T
operator
()()
noexcept
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment