Fix -Wundef warnings due to use of unguarded SDL_AVX512F_INTRINSICS
This commit is contained in:
1 parent
82cf83f4df
commit
6d4c9bd107
1 file changed
+2
-2
@@ -302,7 +302,7 @@ SDL_TARGETING("avx2") static void kernel_ints_add_avx2(Sint32 *dest, const Sint3
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if SDL_AVX512F_INTRINSICS
|
#if defined(SDL_AVX512F_INTRINSICS)
|
||||||
SDL_TARGETING("avx512f") static void kernel_floats_add_avx512f(float *dest, const float *a, const float *b, size_t size) {
|
SDL_TARGETING("avx512f") static void kernel_floats_add_avx512f(float *dest, const float *a, const float *b, size_t size) {
|
||||||
for (; size >= 16; size -= 16, dest += 16, a += 16, b += 16) {
|
for (; size >= 16; size -= 16, dest += 16, a += 16, b += 16) {
|
||||||
_mm512_storeu_ps(dest, _mm512_add_ps(_mm512_loadu_ps(a), _mm512_loadu_ps(b)));
|
_mm512_storeu_ps(dest, _mm512_add_ps(_mm512_loadu_ps(a), _mm512_loadu_ps(b)));
|
||||||
@@ -595,7 +595,7 @@ static int intrinsics_testAVX512F(void *arg)
|
|||||||
{
|
{
|
||||||
if (SDL_HasAVX512F()) {
|
if (SDL_HasAVX512F()) {
|
||||||
SDLTest_AssertCheck(SDL_TRUE, "CPU of test machine has AVX512F support.");
|
SDLTest_AssertCheck(SDL_TRUE, "CPU of test machine has AVX512F support.");
|
||||||
#if SDL_AVX512F_INTRINSICS
|
#if defined(SDL_AVX512F_INTRINSICS)
|
||||||
{
|
{
|
||||||
size_t size;
|
size_t size;
|
||||||
float *dest, *a, *b;
|
float *dest, *a, *b;
|
||||||
|
|||||||
Reference in new issue
Block a user