diff options
Diffstat (limited to 'utils/aligned_malloc.h')
-rw-r--r-- | utils/aligned_malloc.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/aligned_malloc.h b/utils/aligned_malloc.h index b3f43c9..0ec675f 100644 --- a/utils/aligned_malloc.h +++ b/utils/aligned_malloc.h @@ -18,9 +18,13 @@ implied warranty. #include <stdlib.h> +extern unsigned int aligned_malloc_default_alignment; + +unsigned get_cache_line_size(void); + /* This can't simply be named posix_memalign, since the real thing uses free(), but this one can't. */ - int aligned_malloc(void **ptr, unsigned alignment, size_t size); - void aligned_free(void *); +int aligned_malloc(void **ptr, unsigned alignment, size_t size); +void aligned_free(void *); #endif /* __ALIGNED_MALLOC_H__ */ |