mirror of
https://github.com/LMMS/lmms.git
synced 2026-02-06 20:55:34 -05:00
18 lines
293 B
C
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
|