1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-19 11:10:25 +02:00

Reorganize source tree and document

This commit is contained in:
Andy Wingo 2023-08-06 12:04:33 +02:00
parent 5fbd21a7c3
commit e6de2fd633
63 changed files with 225 additions and 235 deletions

17
src/gc-align.h Normal file
View file

@ -0,0 +1,17 @@
#ifndef GC_ALIGN_H
#define GC_ALIGN_H
#ifndef GC_IMPL
#error internal header file, not part of API
#endif
#include <stdint.h>
static inline uintptr_t align_down(uintptr_t addr, size_t align) {
return addr & ~(align - 1);
}
static inline uintptr_t align_up(uintptr_t addr, size_t align) {
return align_down(addr + align - 1, align);
}
#endif // GC_ALIGN_H