File: buffer.h

package info (click to toggle)
swh-plugins 0.4.15%2B1-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 8,268 kB
  • ctags: 12,249
  • sloc: ansic: 72,074; sh: 28,183; xml: 12,247; perl: 769; makefile: 212; 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