commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 05/08: audio osx: use memcpy instead of bco


From: git
Subject: [Commit-gnuradio] [gnuradio] 05/08: audio osx: use memcpy instead of bcopy, to be consistent with the rest of GNU Radio.
Date: Tue, 31 Mar 2015 20:37:40 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit 2a6ab42e63b5133b7e16b7942b664558ce1e212e
Author: Michael Dickens <address@hidden>
Date:   Wed Mar 18 12:54:08 2015 -0400

    audio osx: use memcpy instead of bcopy, to be consistent with the rest of 
GNU Radio.
---
 gr-audio/lib/osx/circular_buffer.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gr-audio/lib/osx/circular_buffer.h 
b/gr-audio/lib/osx/circular_buffer.h
index 7a5cde0..5193a98 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]