Skip to content

Commit

Permalink
cpuinfo: Use a better default alignment value (thanks, Simon!).
Browse files Browse the repository at this point in the history
Fixes Bugzilla #4835.
  • Loading branch information
icculus committed Oct 21, 2019
1 parent cdc7181 commit 9ececee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpuinfo/SDL_cpuinfo.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9ececee

Please sign in to comment.