From f77a409b0c6181d9e8ca2b7dfea34a7925b9f4dd Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 14 Aug 2015 07:29:40 -0400 Subject: [PATCH] tweaks for AVX detection --- libs/pbd/fpu.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/pbd/fpu.cc b/libs/pbd/fpu.cc index 13f0ea6ac4..7b73c689c4 100644 --- a/libs/pbd/fpu.cc +++ b/libs/pbd/fpu.cc @@ -153,9 +153,9 @@ FPU::FPU () __cpuid (cpu_info, 1); - if ((cpu_info[2] & (1<<27)) /* AVX */ && - (cpu_info[2] & (1<<28) /* (OS)XSAVE */) && - (_xgetbv (_XCR_XFEATURE_ENABLED_MASK) & 0x6)) { /* OS really supports XSAVE */ + if ((cpu_info[2] & (1<<27)) /* OSXSAVE */ && + (cpu_info[2] & (1<<28) /* AVX */) && + ((_xgetbv (_XCR_XFEATURE_ENABLED_MASK) & 0x6) == 0x6)) { /* OS really supports XSAVE */ info << _("AVX-capable processor") << endmsg; _flags = Flags (_flags | (HasAVX) ); }