cppcore
A small, portable C++ core library
Loading...
Searching...
No Matches
MemUtils.h File Reference
#include <cppcore/CPPCoreCommon.h>
#include <cinttypes>
Include dependency graph for MemUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cppcore::MemUtils

Namespaces

namespace  cppcore

Macros

#define ALIGN_MASK(value, mask)

Functions

template<class T>
size_t cppcore::align (size_t n)
 Will calculate the alignment for the given size.

Macro Definition Documentation

◆ ALIGN_MASK

#define ALIGN_MASK ( value,
mask )
Value:
(((value) + (mask)) & ((~0) & (~(mask))))

Definition at line 30 of file MemUtils.h.

Referenced by cppcore::MemUtils::alignPtr().