File: buffer.h

package info (click to toggle)
swh-lv2 1.0.16%2Bgit20160519~repack0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 1,004 kB
  • ctags: 440
  • sloc: xml: 11,889; ansic: 2,120; makefile: 120
file content (17 lines) | stat: -rw-r--r-- 293 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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