webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Macros
os_support.h File Reference
#include "opus_types.h"
#include "opus_defines.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Macros

#define OPUS_COPY(dst, src, n)   (memcpy((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) ))
 
#define OPUS_MOVE(dst, src, n)   (memmove((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) ))
 
#define OPUS_CLEAR(dst, n)   (memset((dst), 0, (n)*sizeof(*(dst))))
 

Macro Definition Documentation

◆ OPUS_CLEAR

#define OPUS_CLEAR (   dst,
  n 
)    (memset((dst), 0, (n)*sizeof(*(dst))))

Set n elements of dst to zero

◆ OPUS_COPY

#define OPUS_COPY (   dst,
  src,
  n 
)    (memcpy((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) ))

Copy n elements from src to dst. The 0* term provides compile-time type checking

◆ OPUS_MOVE

#define OPUS_MOVE (   dst,
  src,
  n 
)    (memmove((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) ))

Copy n elements from src to dst, allowing overlapping regions. The 0* term provides compile-time type checking