summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-15 15:59:14 +0000
committerDavid Robillard <d@drobilla.net>2012-08-15 15:59:14 +0000
commita3d2709ee6f9595137df0865f857e0a90dd3a585 (patch)
treed33b596bf162b97572edbc0c5d1bcdadda93301d
parent5dd1d9b720993fc7813fe12fca0844f95033ff1b (diff)
downloadingen-a3d2709ee6f9595137df0865f857e0a90dd3a585.tar.gz
ingen-a3d2709ee6f9595137df0865f857e0a90dd3a585.tar.bz2
ingen-a3d2709ee6f9595137df0865f857e0a90dd3a585.zip
Fix compilation without SSE support.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4701 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/server/Buffer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/Buffer.cpp b/src/server/Buffer.cpp
index b6b67008..9bc2572f 100644
--- a/src/server/Buffer.cpp
+++ b/src/server/Buffer.cpp
@@ -150,6 +150,7 @@ Buffer::port_data(PortType port_type) const
const_cast<Buffer*>(this)->port_data(port_type));
}
+#ifdef __SSE__
/** Vector fabsf */
static inline __m128
mm_abs_ps(__m128 x)
@@ -157,6 +158,7 @@ mm_abs_ps(__m128 x)
const __m128 sign_mask = _mm_set1_ps(-0.0f); // -0.0f = 1 << 31
return _mm_andnot_ps(sign_mask, x);
}
+#endif
float
Buffer::peak(const Context& context) const