Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephan Seitz
pystencils
Commits
1d1f0da5
Commit
1d1f0da5
authored
Sep 04, 2019
by
Michael Kuron
Browse files
AES-NI: correct memory alignment
parent
2d65fcb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/include/aesni_rand.h
View file @
1d1f0da5
...
...
@@ -95,8 +95,8 @@ QUALIFIERS void aesni_double2(uint32 ctr0, uint32 ctr1, uint32 ctr2, uint32 ctr3
#endif
// store result
double
rr
[
2
];
_mm_store
u
_pd
(
rr
,
rs
);
alignas
(
16
)
double
rr
[
2
];
_mm_store_pd
(
rr
,
rs
);
rnd1
=
rr
[
0
];
rnd2
=
rr
[
1
];
}
...
...
@@ -122,8 +122,8 @@ QUALIFIERS void aesni_float4(uint32 ctr0, uint32 ctr1, uint32 ctr2, uint32 ctr3,
#endif
// store result
float
r
[
4
];
_mm_store
u
_ps
(
r
,
rs
);
alignas
(
16
)
float
r
[
4
];
_mm_store_ps
(
r
,
rs
);
rnd1
=
r
[
0
];
rnd2
=
r
[
1
];
rnd3
=
r
[
2
];
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment