projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0c914b8
)
use aligned malloc for luaDSP
author
Robin Gareus
<robin@gareus.org>
Wed, 13 Jul 2016 02:31:15 +0000
(
04:31
+0200)
committer
Robin Gareus
<robin@gareus.org>
Wed, 13 Jul 2016 02:31:34 +0000
(
04:31
+0200)
libs/ardour/ardour/dsp_filter.h
patch
|
blob
|
history
diff --git
a/libs/ardour/ardour/dsp_filter.h
b/libs/ardour/ardour/dsp_filter.h
index 62998f916dfbd9169f0508767124323eacb05fd8..eb9ba4aa0d7fe3f91d9f95b09807c92a94ac307f 100644
(file)
--- a/
libs/ardour/ardour/dsp_filter.h
+++ b/
libs/ardour/ardour/dsp_filter.h
@@
-26,6
+26,8
@@
#include <glibmm.h>
#include <fftw3.h>
#include <glibmm.h>
#include <fftw3.h>
+#include "pbd/malign.h"
+
#include "ardour/buffer_set.h"
#include "ardour/chan_mapping.h"
#include "ardour/libardour_visibility.h"
#include "ardour/buffer_set.h"
#include "ardour/chan_mapping.h"
#include "ardour/libardour_visibility.h"
@@
-62,7
+64,7
@@
namespace ARDOUR { namespace DSP {
}
~DspShm () {
}
~DspShm () {
- free (_data);
+
cache_aligned_
free (_data);
}
/** [re] allocate memory in host's memory space
}
/** [re] allocate memory in host's memory space
@@
-71,7
+73,8
@@
namespace ARDOUR { namespace DSP {
*/
void allocate (size_t s) {
if (s == _size) { return; }
*/
void allocate (size_t s) {
if (s == _size) { return; }
- _data = realloc (_data, sizeof(float) * s);
+ cache_aligned_free (_data);
+ cache_aligned_malloc ((void**) &_data, sizeof (float) * s);
if (_data) { _size = s; }
}
if (_data) { _size = s; }
}