sipxmedialib  Version 3.3
Classes | Macros
MpBufPool.cpp File Reference
#include <assert.h>
#include <mp/MpBufPool.h>
#include <mp/MpBuf.h>
#include <os/OsSysLog.h>
#include <os/OsLock.h>
#include <utl/UtlInt.h>
#include <utl/UtlVoidPtr.h>
#include <utl/UtlHashMapIterator.h>
Include dependency graph for MpBufPool.cpp:

Classes

struct  MpBufList
 Class for internal MpBufPool use. More...
 

Macros

#define MP_ALIGN(val, align)   ((((val)+((align)-1))/(align))*(align))
 Round 'val' to be multiply of 'align'. More...
 
#define MP_ALIGN_SIZE   4
 Block size will be aligned to this value. Other bound will be aligned. More...
 

Macro Definition Documentation

#define MP_ALIGN (   val,
  align 
)    ((((val)+((align)-1))/(align))*(align))

Round 'val' to be multiply of 'align'.

#define MP_ALIGN_SIZE   4

Block size will be aligned to this value. Other bound will be aligned.

Align block size to 4 bytes elsewise to avoid crashes on ARM and performance degradation on x86.