mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 12:10:34 +00:00
cpufeatures: Fix if CPU_FEATURES_OS_DARWIN is not defined
This commit is contained in:
parent
50bb95812d
commit
545cc90320
@ -201,6 +201,7 @@ static bool HasYmmOsXSave(uint32_t xcr0_eax)
|
|||||||
return HasMask(xcr0_eax, MASK_XMM | MASK_YMM);
|
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
|
// Checks that operating system saves and restores zmm registers during context
|
||||||
// switches.
|
// switches.
|
||||||
static bool HasZmmOsXSave(uint32_t xcr0_eax)
|
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 |
|
return HasMask(xcr0_eax, MASK_XMM | MASK_YMM | MASK_MASKREG | MASK_ZMM0_15 |
|
||||||
MASK_ZMM16_31);
|
MASK_ZMM16_31);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Checks that operating system saves and restores AMX/TMUL state during context
|
// Checks that operating system saves and restores AMX/TMUL state during context
|
||||||
// switches.
|
// switches.
|
||||||
|
Loading…
Reference in New Issue
Block a user