diff options
author | Michael Dickens <michael.dickens@ettus.com> | 2015-03-18 12:54:08 -0400 |
---|---|---|
committer | Michael Dickens <michael.dickens@ettus.com> | 2015-03-31 12:23:29 -0400 |
commit | 2a6ab42e63b5133b7e16b7942b664558ce1e212e (patch) | |
tree | ec1f945bb241e01b2680255287244a7765f83539 /gr-audio/lib | |
parent | 693fccf63657ccdb00f4e1fe33aa2a60f12244cd (diff) |
audio osx: use memcpy instead of bcopy, to be consistent with the rest of GNU Radio.
Diffstat (limited to 'gr-audio/lib')
-rw-r--r-- | gr-audio/lib/osx/circular_buffer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-audio/lib/osx/circular_buffer.h b/gr-audio/lib/osx/circular_buffer.h index 7a5cde0540..5193a982d3 100644 --- a/gr-audio/lib/osx/circular_buffer.h +++ b/gr-audio/lib/osx/circular_buffer.h @@ -199,9 +199,9 @@ public: n_now_I = bufLen_I; else if (n_now_I < bufLen_I) n_start_I = bufLen_I - n_now_I; - bcopy (buf, &(d_buffer[d_writeNdx_I]), n_now_I * sizeof (T)); + memcpy (&(d_buffer[d_writeNdx_I]), buf, n_now_I * sizeof (T)); if (n_start_I) { - bcopy (&(buf[n_now_I]), d_buffer, n_start_I * sizeof (T)); + memcpy (d_buffer, &(buf[n_now_I]), n_start_I * sizeof (T)); d_writeNdx_I = n_start_I; } else d_writeNdx_I += n_now_I; @@ -295,9 +295,9 @@ public: n_now_I = l_bufLen_I; else if (n_now_I < l_bufLen_I) n_start_I = l_bufLen_I - n_now_I; - bcopy (&(d_buffer[d_readNdx_I]), buf, n_now_I * sizeof (T)); + memcpy (buf, &(d_buffer[d_readNdx_I]), n_now_I * sizeof (T)); if (n_start_I) { - bcopy (d_buffer, &(buf[n_now_I]), n_start_I * sizeof (T)); + memcpy (&(buf[n_now_I]), d_buffer, n_start_I * sizeof (T)); d_readNdx_I = n_start_I; } else d_readNdx_I += n_now_I; |