Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils
Commits
43074231
Commit
43074231
authored
5 years ago
by
Michael Kuron
Browse files
Options
Downloads
Patches
Plain Diff
AES-NI: Disable optimization on _my_cvtepu64_pd more narrowly
parent
c6bb38c3
No related branches found
No related tags found
1 merge request
!46
AES-NI vectorization improvements
Pipeline
#17693
passed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pystencils/include/aesni_rand.h
+5
-4
5 additions, 4 deletions
pystencils/include/aesni_rand.h
with
5 additions
and
4 deletions
pystencils/include/aesni_rand.h
+
5
−
4
View file @
43074231
#if !defined(__AES__) ||
!defined(__SSE2__) || (!defined(__AVX512VL__) &&
!defined(__SSE4_1__)
)
#if !defined(__AES__) || !defined(__SSE4_1__)
#error AES-NI and
SSE2, as well as AVX512 or
SSE4.1 need to be enabled
#error AES-NI and SSE4.1 need to be enabled
#endif
#endif
#include
<emmintrin.h>
// SSE2
#include
<emmintrin.h>
// SSE2
...
@@ -49,8 +49,8 @@ QUALIFIERS __m128 _my_cvtepu32_ps(const __m128i v)
...
@@ -49,8 +49,8 @@ QUALIFIERS __m128 _my_cvtepu32_ps(const __m128i v)
#endif
#endif
}
}
#if !defined(__AVX512VL__) &&
defined(__FAST_MATH__) &&
defined(__GNUC__) && __GNUC__ >= 5
#if !defined(__AVX512VL__) && defined(__GNUC__) && __GNUC__ >= 5
__attribute__
((
optimize
(
"no-
f
as
t
-math"
)))
__attribute__
((
optimize
(
"no-as
sociative
-math"
)))
#endif
#endif
QUALIFIERS
__m128d
_my_cvtepu64_pd
(
const
__m128i
x
)
QUALIFIERS
__m128d
_my_cvtepu64_pd
(
const
__m128i
x
)
{
{
...
@@ -129,3 +129,4 @@ QUALIFIERS void aesni_float4(uint32 ctr0, uint32 ctr1, uint32 ctr2, uint32 ctr3,
...
@@ -129,3 +129,4 @@ QUALIFIERS void aesni_float4(uint32 ctr0, uint32 ctr1, uint32 ctr2, uint32 ctr3,
rnd3
=
r
[
2
];
rnd3
=
r
[
2
];
rnd4
=
r
[
3
];
rnd4
=
r
[
3
];
}
}
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