Explorar o código

cpuinfo: Use a better default alignment value (thanks, Simon!).

Fixes Bugzilla #4835.
Ryan C. Gordon %!s(int64=5) %!d(string=hai) anos
pai
achega
9ececeeaa4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/cpuinfo/SDL_cpuinfo.c

+ 1 - 1
src/cpuinfo/SDL_cpuinfo.c

@@ -620,7 +620,7 @@ SDL_GetCPUFeatures(void)
     if (SDL_CPUFeatures == 0xFFFFFFFF) {
         CPU_calcCPUIDFeatures();
         SDL_CPUFeatures = 0;
-        SDL_SIMDAlignment = 4;  /* a good safe base value */
+        SDL_SIMDAlignment = sizeof(void *);  /* a good safe base value */
         if (CPU_haveRDTSC()) {
             SDL_CPUFeatures |= CPU_HAS_RDTSC;
         }