diff options
author | William Wilgus <me.theuser@yahoo.com> | 2019-01-04 02:01:18 -0600 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-04-23 14:23:04 +0000 |
commit | 14c6bb798d6bebc80f07e863236adbaf8d156a9c (patch) | |
tree | 551a4b641906c2626af844fa3239c1b2b1ff0ad3 /lib/rbcodec/codecs/libopus/celt/os_support.h | |
parent | 75d93937965ec4df70d37df6d4feea04577c996b (diff) | |
download | rockbox-14c6bb798d6bebc80f07e863236adbaf8d156a9c.tar.gz rockbox-14c6bb798d6bebc80f07e863236adbaf8d156a9c.zip |
Sync opus codec to upstream git
Change-Id: I0cfcc0005c4ad7bfbb1aaf454188ce70fb043dc1
Diffstat (limited to 'lib/rbcodec/codecs/libopus/celt/os_support.h')
-rw-r--r-- | lib/rbcodec/codecs/libopus/celt/os_support.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rbcodec/codecs/libopus/celt/os_support.h b/lib/rbcodec/codecs/libopus/celt/os_support.h index 5e47e3cff9..a2171971e9 100644 --- a/lib/rbcodec/codecs/libopus/celt/os_support.h +++ b/lib/rbcodec/codecs/libopus/celt/os_support.h | |||
@@ -67,18 +67,18 @@ static OPUS_INLINE void opus_free (void *ptr) | |||
67 | } | 67 | } |
68 | #endif | 68 | #endif |
69 | 69 | ||
70 | /** Copy n bytes of memory from src to dst. The 0* term provides compile-time type checking */ | 70 | /** Copy n elements from src to dst. The 0* term provides compile-time type checking */ |
71 | #ifndef OVERRIDE_OPUS_COPY | 71 | #ifndef OVERRIDE_OPUS_COPY |
72 | #define OPUS_COPY(dst, src, n) (memcpy((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) )) | 72 | #define OPUS_COPY(dst, src, n) (memcpy((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) )) |
73 | #endif | 73 | #endif |
74 | 74 | ||
75 | /** Copy n bytes of memory from src to dst, allowing overlapping regions. The 0* term | 75 | /** Copy n elements from src to dst, allowing overlapping regions. The 0* term |
76 | provides compile-time type checking */ | 76 | provides compile-time type checking */ |
77 | #ifndef OVERRIDE_OPUS_MOVE | 77 | #ifndef OVERRIDE_OPUS_MOVE |
78 | #define OPUS_MOVE(dst, src, n) (memmove((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) )) | 78 | #define OPUS_MOVE(dst, src, n) (memmove((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) )) |
79 | #endif | 79 | #endif |
80 | 80 | ||
81 | /** Set n elements of dst to zero, starting at address s */ | 81 | /** Set n elements of dst to zero */ |
82 | #ifndef OVERRIDE_OPUS_CLEAR | 82 | #ifndef OVERRIDE_OPUS_CLEAR |
83 | #define OPUS_CLEAR(dst, n) (memset((dst), 0, (n)*sizeof(*(dst)))) | 83 | #define OPUS_CLEAR(dst, n) (memset((dst), 0, (n)*sizeof(*(dst)))) |
84 | #endif | 84 | #endif |