mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-16 01:46:23 +03:00
Implement PAGE_FLOOR macro
This commit is contained in:
parent
52631c90f6
commit
5bf03f8ce5
2 changed files with 4 additions and 1 deletions
|
|
@ -13,6 +13,9 @@
|
|||
/* Return the smallest pagesize multiple that is >= s. */
|
||||
#define PAGE_CEILING(s) \
|
||||
(((s) + PAGE_MASK) & ~PAGE_MASK)
|
||||
/* Return the largest pagesize multiple that is <=s. */
|
||||
#define PAGE_FLOOR(s) \
|
||||
((s) & ~PAGE_MASK)
|
||||
|
||||
/* Huge page size. LG_HUGEPAGE is determined by the configure script. */
|
||||
#define HUGEPAGE ((size_t)(1U << LG_HUGEPAGE))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue