Free Electron
ext
openal
openal-soft-1.19.1
common
almalloc.h
1
#ifndef AL_MALLOC_H
2
#define AL_MALLOC_H
3
4
#include <stddef.h>
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
/* Minimum alignment required by posix_memalign. */
11
#define DEF_ALIGN sizeof(void*)
12
13
void
*al_malloc(
size_t
alignment,
size_t
size
);
14
void
*al_calloc(
size_t
alignment,
size_t
size
);
15
void
al_free(
void
*ptr);
16
17
size_t
al_get_page_size(
void
);
18
19
/**
20
* Returns non-0 if the allocation function has direct alignment handling.
21
* Otherwise, the standard malloc is used with an over-allocation and pointer
22
* offset strategy.
23
*/
24
int
al_is_sane_alignment_allocator(
void
);
25
26
#ifdef __cplusplus
27
}
28
#endif
29
30
#endif
/* AL_MALLOC_H */
fe::ext::DenseVector::size
U32 size(const DenseVector< T > &lhs)
Return number of elements.
Definition:
DenseVector.h:587
Generated by
1.8.13