ein
0.0.1
一呼百應, "one call, a hundred responses"
Loading...
Searching...
No Matches
attributes/memory.hpp
Go to the documentation of this file.
1
#pragma once
2
13
#include "
common.hpp
"
14
23
28
#if ein_has_attribute(assume_aligned)
29
#define ein_assume_aligned(x) __attribute__((assume_aligned(x)))
30
#else
31
#define ein_assume_aligned(x)
32
#endif
33
42
#if ein_has_attribute(align_value)
43
#define ein_align_value(x) __attribute__((align_value(x)))
44
#else
45
#define ein_align_value(x)
46
#endif
47
49
58
67
#if ein_has_attribute(malloc)
68
#define ein_malloc __attribute__((malloc))
69
#else
70
#define ein_malloc
71
#endif
72
85
#if ein_has_attribute(alloc_align)
86
#define ein_alloc_align(N) __attribute__((alloc_align(N)))
87
#else
88
#define ein_alloc_align(__N)
89
#endif
90
99
#if ein_has_attribute(alloc_size)
100
#define ein_alloc_size(N) __attribute__((alloc_size(N)))
101
#else
102
#define ein_alloc_size(__N)
103
#endif
104
common.hpp
src
ein
attributes
memory.hpp
© 2024 Edward Kmett. All rights reserved.