Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
simde
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
simde
Commits
592f8f0c
Commit
592f8f0c
authored
Jul 16, 2024
by
Alex K
Committed by
Michael R. Crusoe
Sep 13, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_mm256_storeu_pd and _mm256_loadu_pd using 128 bit lanes
parent
de4337e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
x86/avx.h
x86/avx.h
+11
-0
No files found.
x86/avx.h
View file @
592f8f0c
...
...
@@ -3784,6 +3784,12 @@ simde__m256d
simde_mm256_loadu_pd (const double a[HEDLEY_ARRAY_PARAM(4)]) {
#if defined(SIMDE_X86_AVX_NATIVE)
return _mm256_loadu_pd(a);
#elif SIMDE_NATURAL_VECTOR_SIZE_LE(128)
simde__m256d_private r_;
for (size_t i = 0 ; i < (sizeof(r_.m128d) / sizeof(r_.m128d[0])) ; i++) {
r_.m128d[i] = simde_mm_loadu_pd(a + 2*i);
}
return simde__m256d_from_private(r_);
#else
simde__m256d r;
simde_memcpy(&r, a, sizeof(r));
...
...
@@ -5272,6 +5278,11 @@ void
simde_mm256_storeu_pd (simde_float64 mem_addr[4], simde__m256d a) {
#if defined(SIMDE_X86_AVX_NATIVE)
_mm256_storeu_pd(mem_addr, a);
#elif SIMDE_NATURAL_VECTOR_SIZE_LE(128)
simde__m256d_private a_ = simde__m256d_to_private(a);
for (size_t i = 0 ; i < (sizeof(a_.m128d) / sizeof(a_.m128d[0])) ; i++) {
simde_mm_storeu_pd(mem_addr + 2*i, a_.m128d[i]);
}
#else
simde_memcpy(mem_addr, &a, sizeof(a));
#endif
...
...
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