patch-util_buffer_h 575 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-util_buffer_h,v 1.1.1.1 2010/10/24 10:32:48 jakemsr Exp $
  2. - const qualifier neither needed nor correctly used
  3. --- util/buffer.h.orig Sun Jan 18 01:23:46 2009
  4. +++ util/buffer.h Sun Jan 18 01:38:24 2009
  5. @@ -6,12 +6,10 @@
  6. * this could be sped up by vector operations
  7. */
  8. -static inline void buffer_sub(const float* a, const float *b, const float *c, int cnt) {
  9. +static inline void buffer_sub(const float* a, const float *b, float *c, int cnt) {
  10. int i;
  11. - float *h;
  12. - h = c;
  13. for(i=0;i<cnt;++i)
  14. - *h++ = *a++ - *b++;
  15. + *c++ = *a++ - *b++;
  16. }
  17. #endif