[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;
- [Commit-gnuradio] [gnuradio] branch maint updated (48b29c4 -> d817c5f), git, 2015/03/31
- [Commit-gnuradio] [gnuradio] 01/08: qtgui: clarify return value, to make some compilers happier., git, 2015/03/31
- [Commit-gnuradio] [gnuradio] 05/08: audio osx: use memcpy instead of bcopy, to be consistent with the rest of GNU Radio.,
git <=
- [Commit-gnuradio] [gnuradio] 02/08: filter: use correct function for argument type; where's std::abs when you need it to auto-type?, git, 2015/03/31
- [Commit-gnuradio] [gnuradio] 08/08: logger: fix macro name in comments., git, 2015/03/31
- [Commit-gnuradio] [gnuradio] 03/08: blocks: fixmsg handler pmt length / size comparison to be valid., git, 2015/03/31
- [Commit-gnuradio] [gnuradio] 06/08: blocks: use explicit type conversion to compare the same types., git, 2015/03/31
- [Commit-gnuradio] [gnuradio] 07/08: pager & digital: add explicit type to constants that could be interpreted in other ways, to make various compilers happy., git, 2015/03/31
- [Commit-gnuradio] [gnuradio] 04/08: audio osx: change copying of a UInt32 type into a string by using memcpy instead of a direct pointer manipulation, to make some newer compilers happy., git, 2015/03/31