Use fewer header files

Removing some includes to reduce the code that is dragged in.
This commit is contained in:
Matthew Parkinson
2019-04-15 16:19:50 +01:00
committed by Matthew Parkinson
parent 30ad9722a7
commit 4faf9f3bee
13 changed files with 39 additions and 25 deletions

View File

@@ -30,7 +30,7 @@ namespace snmalloc
bits::from_exp_mant<INTERMEDIATE_BITS, MIN_ALLOC_BITS>(sizeclass);
size_t alignment =
std::min((size_t)1 << bits::ctz_const(size[sizeclass]), OS_PAGE_SIZE);
bits::min((size_t)1 << bits::ctz_const(size[sizeclass]), OS_PAGE_SIZE);
cache_friendly_mask[sizeclass] = (alignment - 1);
inverse_cache_friendly_mask[sizeclass] = ~(alignment - 1);
}