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
a8e27fc6
Commit
a8e27fc6
authored
May 26, 2018
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence some strict aliasing warnings on GCC.
parent
22d7b740
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
mini_al.h
mini_al.h
+14
-9
No files found.
mini_al.h
View file @
a8e27fc6
...
@@ -4628,7 +4628,10 @@ void mal_channel_mask_to_channel_map__win32(DWORD dwChannelMask, mal_uint32 chan
...
@@ -4628,7 +4628,10 @@ void mal_channel_mask_to_channel_map__win32(DWORD dwChannelMask, mal_uint32 chan
}
}
#ifdef __cplusplus
#ifdef __cplusplus
#define mal_is_guid_equal(a, b) IsEqualGUID(*((const GUID*)a), *((const GUID*)b))
mal_bool32 mal_is_guid_equal(const void* a, const void* b)
{
return IsEqualGUID(*(const GUID*)a, *(const GUID*)b);
}
#else
#else
#define mal_is_guid_equal(a, b) IsEqualGUID((const GUID*)a, (const GUID*)b)
#define mal_is_guid_equal(a, b) IsEqualGUID((const GUID*)a, (const GUID*)b)
#endif
#endif
...
@@ -20128,18 +20131,20 @@ static MAL_INLINE __m128 mal_src_sinc__interpolation_factor__sse2(const mal_src*
...
@@ -20128,18 +20131,20 @@ static MAL_INLINE __m128 mal_src_sinc__interpolation_factor__sse2(const mal_src*
xabs = _mm_mul_ps(xabs, resolution128);
xabs = _mm_mul_ps(xabs, resolution128);
__m128i ixabs = _mm_cvttps_epi32(xabs);
__m128i ixabs = _mm_cvttps_epi32(xabs);
int* ixabsv = (int*)&ixabs;
__m128 lo = _mm_set_ps(
__m128 lo = _mm_set_ps(
pSRC->sinc.table[
((int*)&ixabs)
[3]],
pSRC->sinc.table[
ixabsv
[3]],
pSRC->sinc.table[
((int*)&ixabs)
[2]],
pSRC->sinc.table[
ixabsv
[2]],
pSRC->sinc.table[
((int*)&ixabs)
[1]],
pSRC->sinc.table[
ixabsv
[1]],
pSRC->sinc.table[
((int*)&ixabs)
[0]]
pSRC->sinc.table[
ixabsv
[0]]
);
);
__m128 hi = _mm_set_ps(
__m128 hi = _mm_set_ps(
pSRC->sinc.table[
((int*)&ixabs)
[3]+1],
pSRC->sinc.table[
ixabsv
[3]+1],
pSRC->sinc.table[
((int*)&ixabs)
[2]+1],
pSRC->sinc.table[
ixabsv
[2]+1],
pSRC->sinc.table[
((int*)&ixabs)
[1]+1],
pSRC->sinc.table[
ixabsv
[1]+1],
pSRC->sinc.table[
((int*)&ixabs)
[0]+1]
pSRC->sinc.table[
ixabsv
[0]+1]
);
);
__m128 a = _mm_sub_ps(xabs, _mm_cvtepi32_ps(ixabs));
__m128 a = _mm_sub_ps(xabs, _mm_cvtepi32_ps(ixabs));
...
...
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