projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07dc805
)
tweaks for AVX detection
author
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 14 Aug 2015 11:29:40 +0000
(07:29 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 14 Aug 2015 12:53:06 +0000
(08:53 -0400)
libs/pbd/fpu.cc
patch
|
blob
|
history
diff --git
a/libs/pbd/fpu.cc
b/libs/pbd/fpu.cc
index 13f0ea6ac41e1ab0db475351fa914baaa518ee77..7b73c689c449a0135ea6cbbcc1d5fc4b99e5a607 100644
(file)
--- 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) );
}