summaryrefslogtreecommitdiffstats
path: root/src/Buffer.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli (think) <matthias@mpb.li>2012-09-26 19:07:28 +0200
committerMatthias P. Braendli (think) <matthias@mpb.li>2012-09-26 19:07:28 +0200
commitf2118c3b98b2e6cce2cb78ca41977a228a7e3b5f (patch)
tree03c49ff7cd732d430ee6c2b98e59e1b2ef743388 /src/Buffer.cpp
parent7970dc6aedc3d9ac7bafc7a63d5ef954f241a378 (diff)
downloaddabmod-f2118c3b98b2e6cce2cb78ca41977a228a7e3b5f.tar.gz
dabmod-f2118c3b98b2e6cce2cb78ca41977a228a7e3b5f.tar.bz2
dabmod-f2118c3b98b2e6cce2cb78ca41977a228a7e3b5f.zip
crc-dabmod: added AVX FIRFilter implementation
that is disabled by default because it's slower than the SSE version.
Diffstat (limited to 'src/Buffer.cpp')
-rw-r--r--src/Buffer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index cef4ad5..7fe0334 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -69,8 +69,10 @@ void Buffer::setLength(size_t len)
{
if (len > size) {
void *tmp = data;
- //data = _mm_malloc(len, 16);
- data = memalign(16, len);
+
+ /* Align to 32-byte boundary for AVX. */
+ data = memalign(32, len);
+
memcpy(data, tmp, this->len);
free(tmp);
size = len;