projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4d0be2e
)
can't use xgetbv instruction with apple gcc under OS X Lion
author
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 12 Aug 2015 03:06:47 +0000
(23:06 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 12 Aug 2015 03:06:47 +0000
(23:06 -0400)
libs/pbd/fpu.cc
patch
|
blob
|
history
diff --git
a/libs/pbd/fpu.cc
b/libs/pbd/fpu.cc
index 5c98ddc3c9c32a544fe4d4266dfd91d29920d197..7450b0d451da629c56693cbb22cbe6891950e18c 100644
(file)
--- a/
libs/pbd/fpu.cc
+++ b/
libs/pbd/fpu.cc
@@
-78,9
+78,16
@@
__cpuid(int regs[4], int cpuid_leaf)
static uint64_t
_xgetbv (uint32_t xcr)
{
+#ifdef __APPLE__
+ /* it would be nice to make this work on OS X but as long we use veclib,
+ we don't really need to know about SSE/AVX on that platform.
+ */
+ return 0;
+#else
uint32_t eax, edx;
__asm__ volatile ("xgetbv" : "=a" (eax), "=d" (edx) : "c" (xcr));
return (static_cast<uint64_t>(edx) << 32) | eax;
+#endif
}
#define _XCR_XFEATURE_ENABLED_MASK 0