diff options
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 |