ports/audio/swh-plugins/patches/patch-util_buffer_h

20 lines
500 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
- const qualifier neither needed nor correctly used
--- util/buffer.h.orig Sun Jan 18 01:23:46 2009
+++ util/buffer.h Sun Jan 18 01:38:24 2009
@@ -6,12 +6,10 @@
* this could be sped up by vector operations
*/
-static inline void buffer_sub(const float* a, const float *b, const float *c, int cnt) {
+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++;
+ *c++ = *a++ - *b++;
}
#endif