Files
lmms/plugins/LadspaEffect/swh/util/buffer.h

18 lines
293 B
C

#ifndef _BUFFER_H
#define _BUFFER_H
/* substract buffer b from a, save in c
*
* this could be sped up by vector operations
*/
static inline void buffer_sub(const float* a, const float *b, float *c, int cnt) {
int i;
float *h;
h = c;
for(i=0;i<cnt;++i)
*h++ = *a++ - *b++;
}
#endif