Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
MyCard
miniaudio
Commits
ec3f56d8
Commit
ec3f56d8
authored
May 30, 2018
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use AVX2 where AVX-512 has not yet been implemented.
parent
da4e05ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
mini_al.h
mini_al.h
+23
-23
No files found.
mini_al.h
View file @
ec3f56d8
...
...
@@ -17345,7 +17345,7 @@ void mal_pcm_u8_to_s16__avx2(void* dst, const void* src, mal_uint64 count, mal_d
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_u8_to_s16__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_u8_to_s16__
optimized
(dst, src, count, ditherMode);
mal_pcm_u8_to_s16__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -17403,7 +17403,7 @@ void mal_pcm_u8_to_s24__avx2(void* dst, const void* src, mal_uint64 count, mal_d
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_u8_to_s24__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_u8_to_s24__
optimized
(dst, src, count, ditherMode);
mal_pcm_u8_to_s24__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -17459,7 +17459,7 @@ void mal_pcm_u8_to_s32__avx2(void* dst, const void* src, mal_uint64 count, mal_d
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_u8_to_s32__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_u8_to_s32__
optimized
(dst, src, count, ditherMode);
mal_pcm_u8_to_s32__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -17516,7 +17516,7 @@ void mal_pcm_u8_to_f32__avx2(void* dst, const void* src, mal_uint64 count, mal_d
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_u8_to_f32__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_u8_to_f32__
optimized
(dst, src, count, ditherMode);
mal_pcm_u8_to_f32__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -17668,7 +17668,7 @@ void mal_pcm_s16_to_u8__avx2(void* dst, const void* src, mal_uint64 count, mal_d
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_s16_to_u8__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_s16_to_u8__
optimized
(dst, src, count, ditherMode);
mal_pcm_s16_to_u8__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -17730,7 +17730,7 @@ void mal_pcm_s16_to_s24__avx2(void* dst, const void* src, mal_uint64 count, mal_
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_s16_to_s24__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_s16_to_s24__
optimized
(dst, src, count, ditherMode);
mal_pcm_s16_to_s24__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -17783,7 +17783,7 @@ void mal_pcm_s16_to_s32__avx2(void* dst, const void* src, mal_uint64 count, mal_
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_s16_to_s32__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_s16_to_s32__
optimized
(dst, src, count, ditherMode);
mal_pcm_s16_to_s32__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -17848,7 +17848,7 @@ void mal_pcm_s16_to_f32__avx2(void* dst, const void* src, mal_uint64 count, mal_
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_s16_to_f32__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_s16_to_f32__
optimized
(dst, src, count, ditherMode);
mal_pcm_s16_to_f32__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -17978,7 +17978,7 @@ void mal_pcm_s24_to_u8__avx2(void* dst, const void* src, mal_uint64 count, mal_d
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_s24_to_u8__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_s24_to_u8__
optimized
(dst, src, count, ditherMode);
mal_pcm_s24_to_u8__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -18049,7 +18049,7 @@ void mal_pcm_s24_to_s16__avx2(void* dst, const void* src, mal_uint64 count, mal_
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_s24_to_s16__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_s24_to_s16__
optimized
(dst, src, count, ditherMode);
mal_pcm_s24_to_s16__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -18110,7 +18110,7 @@ void mal_pcm_s24_to_s32__avx2(void* dst, const void* src, mal_uint64 count, mal_
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_s24_to_s32__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_s24_to_s32__
optimized
(dst, src, count, ditherMode);
mal_pcm_s24_to_s32__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -18175,7 +18175,7 @@ void mal_pcm_s24_to_f32__avx2(void* dst, const void* src, mal_uint64 count, mal_
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_s24_to_f32__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_s24_to_f32__
optimized
(dst, src, count, ditherMode);
mal_pcm_s24_to_f32__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -18312,7 +18312,7 @@ void mal_pcm_s32_to_u8__avx2(void* dst, const void* src, mal_uint64 count, mal_d
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_s32_to_u8__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_s32_to_u8__
optimized
(dst, src, count, ditherMode);
mal_pcm_s32_to_u8__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -18383,7 +18383,7 @@ void mal_pcm_s32_to_s16__avx2(void* dst, const void* src, mal_uint64 count, mal_
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_s32_to_s16__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_s32_to_s16__
optimized
(dst, src, count, ditherMode);
mal_pcm_s32_to_s16__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -18439,7 +18439,7 @@ void mal_pcm_s32_to_s24__avx2(void* dst, const void* src, mal_uint64 count, mal_
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_s32_to_s24__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_s32_to_s24__
optimized
(dst, src, count, ditherMode);
mal_pcm_s32_to_s24__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -18510,7 +18510,7 @@ void mal_pcm_s32_to_f32__avx2(void* dst, const void* src, mal_uint64 count, mal_
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_s32_to_f32__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_s32_to_f32__
optimized
(dst, src, count, ditherMode);
mal_pcm_s32_to_f32__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -18633,7 +18633,7 @@ void mal_pcm_f32_to_u8__avx2(void* dst, const void* src, mal_uint64 count, mal_d
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_f32_to_u8__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_f32_to_u8__
optimized
(dst, src, count, ditherMode);
mal_pcm_f32_to_u8__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -18902,8 +18902,8 @@ void mal_pcm_f32_to_s16__avx2(void* dst, const void* src, mal_uint64 count, mal_
// Computing the final result is a little more complicated for AVX2 than SSE2.
__m256i i0 = _mm256_cvttps_epi32(x0);
__m256i i1 = _mm256_cvttps_epi32(x1);
__m256i p0 = _mm256_permute2x128_si256(i0, i1, 32);
__m256i p1 = _mm256_permute2x128_si256(i0, i1,
49
);
__m256i p0 = _mm256_permute2x128_si256(i0, i1,
0 |
32);
__m256i p1 = _mm256_permute2x128_si256(i0, i1,
1 | 48
);
__m256i r = _mm256_packs_epi32(p0, p1);
*((__m256i*)(dst_s16 + i)) = r;
...
...
@@ -18995,7 +18995,7 @@ void mal_pcm_f32_to_s24__avx2(void* dst, const void* src, mal_uint64 count, mal_
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_f32_to_s24__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_f32_to_s24__
optimized
(dst, src, count, ditherMode);
mal_pcm_f32_to_s24__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -19061,7 +19061,7 @@ void mal_pcm_f32_to_s32__avx2(void* dst, const void* src, mal_uint64 count, mal_
#if defined(MAL_SUPPORT_AVX512)
void mal_pcm_f32_to_s32__avx512(void* dst, const void* src, mal_uint64 count, mal_dither_mode ditherMode)
{
mal_pcm_f32_to_s32__
optimized
(dst, src, count, ditherMode);
mal_pcm_f32_to_s32__
avx2
(dst, src, count, ditherMode);
}
#endif
#if defined(MAL_SUPPORT_NEON)
...
...
@@ -21285,8 +21285,8 @@ mal_uint64 mal_src_read_deinterleaved__sinc(mal_src* pSRC, mal_uint64 frameCount
windowSamples[i] = pSRC->sinc.input[iChannel][iTimeIn + i];
}
#if defined(MAL_SUPPORT_AVX2)
if (pSRC->useAVX2) {
#if defined(MAL_SUPPORT_AVX2)
|| defined(MAL_SUPPORT_AVX512)
if (pSRC->useAVX2
|| pSRC->useAVX512
) {
__m256i ixabs[MAL_SRC_SINC_MAX_WINDOW_WIDTH*2/8];
__m256 a[MAL_SRC_SINC_MAX_WINDOW_WIDTH*2/8];
__m256 resolution256 = _mm256_set1_ps(MAL_SRC_SINC_LOOKUP_TABLE_RESOLUTION);
...
...
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