summaryrefslogtreecommitdiffstats
path: root/utils/aligned_malloc.h
diff options
context:
space:
mode:
authorSimon Rettberg2021-04-06 14:43:39 +0200
committerSimon Rettberg2021-04-07 13:38:37 +0200
commit38886de0c3e9ea5729ef23e4c653fa2822f52e8f (patch)
tree9b799c8c968a92cc77746a95e0e8bdd90b6b13c3 /utils/aligned_malloc.h
parentMaybe not remove, but ... (diff)
downloadxscreensaver-38886de0c3e9ea5729ef23e4c653fa2822f52e8f.tar.gz
xscreensaver-38886de0c3e9ea5729ef23e4c653fa2822f52e8f.tar.xz
xscreensaver-38886de0c3e9ea5729ef23e4c653fa2822f52e8f.zip
xscreensaver 6.00v28r1openslx
Diffstat (limited to 'utils/aligned_malloc.h')
-rw-r--r--utils/aligned_malloc.h8
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__ */