diff options
author | Simon Rettberg | 2021-04-06 14:43:39 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-04-07 13:38:37 +0200 |
commit | 38886de0c3e9ea5729ef23e4c653fa2822f52e8f (patch) | |
tree | 9b799c8c968a92cc77746a95e0e8bdd90b6b13c3 /utils/aligned_malloc.h | |
parent | Maybe not remove, but ... (diff) | |
download | xscreensaver-38886de0c3e9ea5729ef23e4c653fa2822f52e8f.tar.gz xscreensaver-38886de0c3e9ea5729ef23e4c653fa2822f52e8f.tar.xz xscreensaver-38886de0c3e9ea5729ef23e4c653fa2822f52e8f.zip |
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__ */ |