File: buffer.h

package info (click to toggle)
swh-plugins 0.4.15%2B1-6
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 9,060 kB
  • sloc: ansic: 72,074; xml: 12,247; sh: 11,689; perl: 769; makefile: 211; sed: 16
file content (17 lines) | stat: -rw-r--r-- 299 bytes parent folder | download | duplicates (6)
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, const float *c, int cnt) {
	int i;
	float *h;
	h = c;
	for(i=0;i<cnt;++i)
		*h++ = *a++ - *b++;
}

#endif