From 1f61ae81a2fa777fea564b205f53c6dca296dd0d Mon Sep 17 00:00:00 2001 From: Tristan Matthews Date: Sun, 10 Aug 2014 13:45:56 -0400 Subject: os_support: fix misleading comments cherry-picked from speexdsp 86779a06f6500d041573d6252d4971d3bfcb4b18 --- libspeex/os_support.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libspeex/os_support.h b/libspeex/os_support.h index 6b74b0c..2e23a5e 100644 --- a/libspeex/os_support.h +++ b/libspeex/os_support.h @@ -90,18 +90,18 @@ static inline void speex_free_scratch (void *ptr) } #endif -/** Copy n bytes of memory from src to dst. The 0* term provides compile-time type checking */ +/** Copy n elements from src to dst. The 0* term provides compile-time type checking */ #ifndef OVERRIDE_SPEEX_COPY #define SPEEX_COPY(dst, src, n) (memcpy((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) )) #endif -/** Copy n bytes of memory from src to dst, allowing overlapping regions. The 0* term +/** Copy n elements from src to dst, allowing overlapping regions. The 0* term provides compile-time type checking */ #ifndef OVERRIDE_SPEEX_MOVE #define SPEEX_MOVE(dst, src, n) (memmove((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) )) #endif -/** Set n bytes of memory to value of c, starting at address s */ +/** For n elements worth of memory, set every byte to the value of c, starting at address dst */ #ifndef OVERRIDE_SPEEX_MEMSET #define SPEEX_MEMSET(dst, c, n) (memset((dst), (c), (n)*sizeof(*(dst)))) #endif -- cgit v1.2.3