mirror of https://github.com/encounter/SDL.git
cpuinfo: Use a better default alignment value (thanks, Simon!).
Fixes Bugzilla #4835.
This commit is contained in:
parent
cdc7181e6d
commit
9ececeeaa4
|
@ -620,7 +620,7 @@ SDL_GetCPUFeatures(void)
|
||||||
if (SDL_CPUFeatures == 0xFFFFFFFF) {
|
if (SDL_CPUFeatures == 0xFFFFFFFF) {
|
||||||
CPU_calcCPUIDFeatures();
|
CPU_calcCPUIDFeatures();
|
||||||
SDL_CPUFeatures = 0;
|
SDL_CPUFeatures = 0;
|
||||||
SDL_SIMDAlignment = 4; /* a good safe base value */
|
SDL_SIMDAlignment = sizeof(void *); /* a good safe base value */
|
||||||
if (CPU_haveRDTSC()) {
|
if (CPU_haveRDTSC()) {
|
||||||
SDL_CPUFeatures |= CPU_HAS_RDTSC;
|
SDL_CPUFeatures |= CPU_HAS_RDTSC;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue