mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-09 11:26:29 +00:00
cpuinfo: Use a better default alignment value (thanks, Simon!).
Fixes Bugzilla #4835.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user