cpuinfo: Use a better default alignment value (thanks, Simon!).
authorRyan C. Gordon <icculus@icculus.org>
Sun, 20 Oct 2019 22:17:59 -0400
changeset 13151568f67c04841
parent 13150 29acbbbb41b2
child 13153 74ac66d0e8ca
cpuinfo: Use a better default alignment value (thanks, Simon!).

Fixes Bugzilla #4835.
src/cpuinfo/SDL_cpuinfo.c
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Sat Oct 19 01:54:02 2019 -0700
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Sun Oct 20 22:17:59 2019 -0400
     1.3 @@ -620,7 +620,7 @@
     1.4      if (SDL_CPUFeatures == 0xFFFFFFFF) {
     1.5          CPU_calcCPUIDFeatures();
     1.6          SDL_CPUFeatures = 0;
     1.7 -        SDL_SIMDAlignment = 4;  /* a good safe base value */
     1.8 +        SDL_SIMDAlignment = sizeof(void *);  /* a good safe base value */
     1.9          if (CPU_haveRDTSC()) {
    1.10              SDL_CPUFeatures |= CPU_HAS_RDTSC;
    1.11          }