diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-08-14 07:29:40 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-08-14 08:53:06 -0400 |
commit | f77a409b0c6181d9e8ca2b7dfea34a7925b9f4dd (patch) | |
tree | b12032f40b1cc1e372e138add739e95453762f39 /libs/pbd/fpu.cc | |
parent | 07dc8059199e64b49c35257e03ac8e36305fad5e (diff) |
tweaks for AVX detection
Diffstat (limited to 'libs/pbd/fpu.cc')
-rw-r--r-- | libs/pbd/fpu.cc | 6 |
1 files 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) ); } |