diff options
author | Matthias P. Braendli (think) <matthias@mpb.li> | 2012-09-26 19:07:28 +0200 |
---|---|---|
committer | Matthias P. Braendli (think) <matthias@mpb.li> | 2012-09-26 19:07:28 +0200 |
commit | f2118c3b98b2e6cce2cb78ca41977a228a7e3b5f (patch) | |
tree | 03c49ff7cd732d430ee6c2b98e59e1b2ef743388 /src/Buffer.cpp | |
parent | 7970dc6aedc3d9ac7bafc7a63d5ef954f241a378 (diff) | |
download | dabmod-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.cpp | 6 |
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; |