shithub: opus-tools

Download patch

ref: 5a99cdbef4a3b4fcf4a49d2de959e535babc13d7
parent: 6e5d6ad588df30fbacd3a0b8e2fb802b2b8e0803
author: Tristan Matthews <le.businessman@gmail.com>
date: Sun Aug 10 09:50:15 EDT 2014

os_support: fix misleading comments

cherry-picked from speexdsp 86779a06f6500d041573d6252d4971d3bfcb4b18

--- a/src/os_support.h
+++ b/src/os_support.h
@@ -88,18 +88,18 @@
 }
 #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