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
ab176f9a
Commit
ab176f9a
authored
4 years ago
by
Markus Holzer
Browse files
Options
Downloads
Plain Diff
Merge branch 'philox-simd' of i10git.cs.fau.de:pycodegen/pystencils into philox-simd
parents
24f1caf9
437f18b9
No related branches found
No related tags found
1 merge request
!212
vectorization: improve treatment of unary minus
Pipeline
#30360
failed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pystencils/include/myintrin.h
+4
-0
4 additions, 0 deletions
pystencils/include/myintrin.h
with
4 additions
and
0 deletions
pystencils/include/myintrin.h
+
4
−
0
View file @
ab176f9a
...
...
@@ -36,6 +36,8 @@ QUALIFIERS __m128d _my_cvtepu64_pd(const __m128i x)
{
#ifdef __AVX512VL__
return
_mm_cvtepu64_pd
(
x
);
#elif defined(__clang__)
return
__builtin_convertvector
((
uint64_t
__attribute__
((
__vector_size__
(
16
))))
x
,
__m128d
);
#else
__m128i
xH
=
_mm_srli_epi64
(
x
,
32
);
xH
=
_mm_or_si128
(
xH
,
_mm_castpd_si128
(
_mm_set1_pd
(
19342813113834066795298816
.)));
// 2^84
...
...
@@ -85,6 +87,8 @@ QUALIFIERS __m256d _my256_cvtepu64_pd(const __m256i x)
{
#ifdef __AVX512VL__
return
_mm256_cvtepu64_pd
(
x
);
#elif defined(__clang__)
return
__builtin_convertvector
((
uint64_t
__attribute__
((
__vector_size__
(
32
))))
x
,
__m256d
);
#else
__m256i
xH
=
_mm256_srli_epi64
(
x
,
32
);
xH
=
_mm256_or_si256
(
xH
,
_mm256_castpd_si256
(
_mm256_set1_pd
(
19342813113834066795298816
.)));
// 2^84
...
...
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