mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
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
Block a user