diff options
author | Simon Rettberg | 2021-04-06 14:23:46 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-04-06 14:23:46 +0200 |
commit | 26b6e4255d4b9ff79a6dca10de5bec7bfc8691f9 (patch) | |
tree | a51e1637554bcd84e63cccb1cb220c898a2c4ee8 /utils/aligned_malloc.h | |
parent | 5.44 (diff) | |
download | xscreensaver-26b6e4255d4b9ff79a6dca10de5bec7bfc8691f9.tar.gz xscreensaver-26b6e4255d4b9ff79a6dca10de5bec7bfc8691f9.tar.xz xscreensaver-26b6e4255d4b9ff79a6dca10de5bec7bfc8691f9.zip |
xscreensaver 6.00
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__ */ |