Fix -Wundef warnings due to use of unguarded SDL_SSE3_INTRINSICS
This commit is contained in:
1 parent
051a442381
commit
344db1b251
2 files changed
+4
-4
No files matched your search
@@ -144,7 +144,7 @@ static int SDL_ConvertAudio(SDL_AudioCVT * cvt);
|
|||||||
* 8 channels (7.1) layout: FL+FR+FC+LFE+BL+BR+SL+SR
|
* 8 channels (7.1) layout: FL+FR+FC+LFE+BL+BR+SL+SR
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if SDL_SSE3_INTRINSICS
|
#if defined(SDL_SSE3_INTRINSICS)
|
||||||
/* Convert from stereo to mono. Average left and right. */
|
/* Convert from stereo to mono. Average left and right. */
|
||||||
static void SDLCALL SDL_TARGETING("sse3") SDL_ConvertStereoToMono_SSE3(SDL_AudioCVT *cvt, SDL_AudioFormat format)
|
static void SDLCALL SDL_TARGETING("sse3") SDL_ConvertStereoToMono_SSE3(SDL_AudioCVT *cvt, SDL_AudioFormat format)
|
||||||
{
|
{
|
||||||
@@ -832,7 +832,7 @@ static int SDL_BuildAudioCVT(SDL_AudioCVT *cvt,
|
|||||||
/* swap in some SIMD versions for a few of these. */
|
/* swap in some SIMD versions for a few of these. */
|
||||||
if (channel_converter == SDL_ConvertStereoToMono) {
|
if (channel_converter == SDL_ConvertStereoToMono) {
|
||||||
SDL_AudioFilter filter = NULL;
|
SDL_AudioFilter filter = NULL;
|
||||||
#if SDL_SSE3_INTRINSICS
|
#if defined(SDL_SSE3_INTRINSICS)
|
||||||
if (!filter && SDL_HasSSE3()) {
|
if (!filter && SDL_HasSSE3()) {
|
||||||
filter = SDL_ConvertStereoToMono_SSE3;
|
filter = SDL_ConvertStereoToMono_SSE3;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ SDL_TARGETING("sse2") static void kernel_doubles_add_sse2(double *dest, const do
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if SDL_SSE3_INTRINSICS
|
#if defined(SDL_SSE3_INTRINSICS)
|
||||||
SDL_TARGETING("sse3") static void kernel_ints_add_sse3(Sint32 *dest, const Sint32 *a, const Sint32 *b, size_t size) {
|
SDL_TARGETING("sse3") static void kernel_ints_add_sse3(Sint32 *dest, const Sint32 *a, const Sint32 *b, size_t size) {
|
||||||
for (; size >= 4; size -= 4, dest += 4, a += 4, b += 4) {
|
for (; size >= 4; size -= 4, dest += 4, a += 4, b += 4) {
|
||||||
_mm_storeu_si128((__m128i*)dest, _mm_add_epi32(_mm_lddqu_si128((__m128i*)a), _mm_lddqu_si128((__m128i*)b)));
|
_mm_storeu_si128((__m128i*)dest, _mm_add_epi32(_mm_lddqu_si128((__m128i*)a), _mm_lddqu_si128((__m128i*)b)));
|
||||||
@@ -448,7 +448,7 @@ static int intrinsics_testSSE3(void *arg)
|
|||||||
{
|
{
|
||||||
if (SDL_HasSSE3()) {
|
if (SDL_HasSSE3()) {
|
||||||
SDLTest_AssertCheck(SDL_TRUE, "CPU of test machine has SSE3 support.");
|
SDLTest_AssertCheck(SDL_TRUE, "CPU of test machine has SSE3 support.");
|
||||||
#if SDL_SSE3_INTRINSICS
|
#if defined(SDL_SSE3_INTRINSICS)
|
||||||
{
|
{
|
||||||
size_t size;
|
size_t size;
|
||||||
Sint32 *dest, *a, *b;
|
Sint32 *dest, *a, *b;
|
||||||
|
|||||||
Reference in new issue
Block a user