Ion
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
aligned_malloc.h
Go to the documentation of this file.
1
18
#ifndef ION_PORT_NACL_OVERRIDE_ALIGNED_MALLOC_H_
19
#define ION_PORT_NACL_OVERRIDE_ALIGNED_MALLOC_H_
20
21
#if defined(ION_PLATFORM_NACL)
22
23
#include <malloc.h>
24
27
inline
void
* aligned_malloc(
size_t
size,
int
minimum_alignment) {
28
return
memalign(minimum_alignment, size);
29
}
30
31
inline
void
aligned_free(
void
*aligned_memory) {
32
free(aligned_memory);
33
}
34
35
#endif // ION_PLATFORM_NACL
36
#endif // ION_PORT_NACL_OVERRIDE_ALIGNED_MALLOC_H_
port
nacl
override
aligned_malloc.h
Generated by
1.8.6