diff options
Diffstat (limited to 'src/corelib/global/qfloat16.cpp')
-rw-r--r-- | src/corelib/global/qfloat16.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/global/qfloat16.cpp b/src/corelib/global/qfloat16.cpp index 9646943620..d816d8b888 100644 --- a/src/corelib/global/qfloat16.cpp +++ b/src/corelib/global/qfloat16.cpp @@ -194,9 +194,9 @@ int qfloat16::fpClassify() const noexcept #if QT_COMPILER_SUPPORTS(F16C) static inline bool hasFastF16() { - // All processors with F16C also support AVX, but YMM registers - // might not be supported by the OS, or they might be disabled. - return qCpuHasFeature(F16C) && qCpuHasFeature(AVX); + // qsimd.cpp:detectProcessorFeatures() turns off this feature if AVX + // state-saving is not enabled by the OS + return qCpuHasFeature(F16C); } QT_FUNCTION_TARGET(F16C) |