Import Upstream version 20180207
[hcoop/debian/mlton.git] / runtime / gc / align.h
1 /* Copyright (C) 2012 Matthew Fluet.
2 * Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
3 * Jagannathan, and Stephen Weeks.
4 * Copyright (C) 1997-2000 NEC Research Institute.
5 *
6 * MLton is released under a BSD-style license.
7 * See the file MLton-LICENSE for details.
8 */
9
10 #if (defined (MLTON_GC_INTERNAL_FUNCS))
11
12 static inline size_t alignWithExtra (GC_state s, size_t bytes, size_t extra);
13
14 #if ASSERT
15 static inline bool isFrontierAligned (GC_state s, pointer p);
16 #endif
17 static inline pointer alignFrontier (GC_state s, pointer p);
18
19 #endif /* (defined (MLTON_GC_INTERNAL_FUNCS)) */