Commits
Joshua Root authored cbfe1fcb7f4
1 + | --- rak/allocators.h.orig 2011-04-05 20:25:36.000000000 +1000 |
2 + | +++ rak/allocators.h 2011-10-12 11:24:21.000000000 +1100 |
3 + | |
4 + | |
5 + | static pointer alloc_size(size_type size) { |
6 + | pointer ptr = NULL; |
7 + | +#ifdef HAVE_POSIX_MEMALIGN |
8 + | int __UNUSED result = posix_memalign((void**)&ptr, LT_SMP_CACHE_BYTES, size); |
9 + | - |
10 + | +#else |
11 + | + ptr = valloc(size); |
12 + | +#endif |
13 + | return ptr; |
14 + | } |
15 + |