diff options
Diffstat (limited to 'apps/codecs/libspeex/os_support.h')
-rw-r--r-- | apps/codecs/libspeex/os_support.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/codecs/libspeex/os_support.h b/apps/codecs/libspeex/os_support.h index 7e4b25b3d9..71d24753c1 100644 --- a/apps/codecs/libspeex/os_support.h +++ b/apps/codecs/libspeex/os_support.h | |||
@@ -86,20 +86,20 @@ static inline void speex_free_scratch (void *ptr) | |||
86 | } | 86 | } |
87 | #endif | 87 | #endif |
88 | 88 | ||
89 | /** Print warning message with integer argument to stderr */ | 89 | /** Copy n bytes of memory from src to dst. The 0* term provides compile-time type checking */ |
90 | #ifndef OVERRIDE_SPEEX_MOVE | 90 | #ifndef OVERRIDE_SPEEX_COPY |
91 | static inline void *speex_move (void *dest, void *src, int n) | 91 | #define SPEEX_COPY(dst, src, n) (memcpy((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) )) |
92 | { | ||
93 | return memmove(dest,src,n); | ||
94 | } | ||
95 | #endif | 92 | #endif |
96 | 93 | ||
97 | /** Print warning message with integer argument to stderr */ | 94 | /** Copy n bytes of memory from src to dst, allowing overlapping regions. The 0* term |
95 | provides compile-time type checking */ | ||
98 | #ifndef OVERRIDE_SPEEX_MOVE | 96 | #ifndef OVERRIDE_SPEEX_MOVE |
99 | static inline void *speex_memset (void *s, int c, int n) | 97 | #define SPEEX_MOVE(dst, src, n) (memmove((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) )) |
100 | { | 98 | #endif |
101 | return memset(s,c,n); | 99 | |
102 | } | 100 | /** Set n bytes of memory to value of c, starting at address s */ |
101 | #ifndef OVERRIDE_SPEEX_MEMSET | ||
102 | #define SPEEX_MEMSET(dst, c, n) (memset((dst), (c), (n)*sizeof(*(dst)))) | ||
103 | #endif | 103 | #endif |
104 | 104 | ||
105 | 105 | ||