1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-13 19:50:34 +00:00

cpufeatures: Fix if CPU_FEATURES_OS_DARWIN is not defined

This commit is contained in:
Carles Fernandez 2021-10-25 16:24:50 +02:00
parent 50bb95812d
commit 545cc90320
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -201,6 +201,7 @@ static bool HasYmmOsXSave(uint32_t xcr0_eax)
return HasMask(xcr0_eax, MASK_XMM | MASK_YMM);
}
#if !defined(CPU_FEATURES_OS_DARWIN)
// Checks that operating system saves and restores zmm registers during context
// switches.
static bool HasZmmOsXSave(uint32_t xcr0_eax)
@ -208,6 +209,7 @@ static bool HasZmmOsXSave(uint32_t xcr0_eax)
return HasMask(xcr0_eax, MASK_XMM | MASK_YMM | MASK_MASKREG | MASK_ZMM0_15 |
MASK_ZMM16_31);
}
#endif
// Checks that operating system saves and restores AMX/TMUL state during context
// switches.