Smart Remote 3 nRF52 v1.2
35 # include "custom_support.h"
38 #include "opus_types.h"
39 #include "opus_defines.h"
46 #ifndef OVERRIDE_OPUS_ALLOC
47 static OPUS_INLINE
void *opus_alloc (
size_t size)
54 #ifndef OVERRIDE_OPUS_ALLOC_SCRATCH
55 static OPUS_INLINE
void *opus_alloc_scratch (
size_t size)
58 return opus_alloc(size);
63 #ifndef OVERRIDE_OPUS_FREE
64 static OPUS_INLINE
void opus_free (
void *ptr)
71 #ifndef OVERRIDE_OPUS_COPY
72 #define OPUS_COPY(dst, src, n) (memcpy((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) ))
77 #ifndef OVERRIDE_OPUS_MOVE
78 #define OPUS_MOVE(dst, src, n) (memmove((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) ))
82 #ifndef OVERRIDE_OPUS_CLEAR
83 #define OPUS_CLEAR(dst, n) (memset((dst), 0, (n)*sizeof(*(dst))))