1 #ifndef _BUFFER_H 2 #define _BUFFER_H 3 4 /* substract buffer b from a, save in c 5 * 6 * this could be sped up by vector operations 7 */ 8 buffer_sub(const float * a,const float * b,float * c,int cnt)9static inline void buffer_sub(const float* a, const float *b, float *c, int cnt) { 10 int i; 11 for(i=0;i<cnt;++i) 12 *c++ = *a++ - *b++; 13 } 14 15 #endif 16