projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec5eccd
)
fix stupid logic error in testing separate bits required for AVX support
author
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 12 Aug 2015 00:18:38 +0000
(20:18 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 12 Aug 2015 00:18:38 +0000
(20:18 -0400)
libs/pbd/fpu.cc
patch
|
blob
|
history
diff --git
a/libs/pbd/fpu.cc
b/libs/pbd/fpu.cc
index 29d09f7aa947626459b69c8a2ad033241001e16e..93f75f7e2a5bb06e148b1aed74e935f0411ae9de 100644
(file)
--- a/
libs/pbd/fpu.cc
+++ b/
libs/pbd/fpu.cc
@@
-97,7
+97,10
@@
FPU::FPU ()
#endif /* PLATFORM_WINDOWS */
#ifndef __APPLE__
- if (cpuflags & ((1<<27) /* AVX */ |(1<<28) /* XGETBV */)) {
+ /* must check for both AVX and OSXSAVE support in cpuflags before
+ * attempting to use AVX related instructions.
+ */
+ if ((cpuflags & (1<<27)) /* AVX */ && (cpuflags & (1<<28) /* (OS)XSAVE */)) {
std::cerr << "Looks like AVX\n";