MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / aligned_malloc

Function aligned_malloc

extern/libcds/cds/os/win/alloc_aligned.h:15–21  ·  view source on GitHub ↗

Allocates memory on a specified alignment boundary

Source from the content-addressed store, hash-verified

13 inline namespace Win32 {
14 /// Allocates memory on a specified alignment boundary
15 static inline void * aligned_malloc(
16 size_t nSize, ///< Size of the requested memory allocation
17 size_t nAlignment ///< The alignment value, which must be an integer power of 2
18 )
19 {
20 return ::_aligned_malloc( nSize, nAlignment );
21 }
22
23 /// Frees a block of memory that was allocated with aligned_malloc.
24 static inline void aligned_free(

Callers 1

allocateMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected