Use fewer header files
Removing some includes to reduce the code that is dragged in.
This commit is contained in:
committed by
Matthew Parkinson
parent
30ad9722a7
commit
4faf9f3bee
@@ -1,9 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "../ds/bits.h"
|
||||
#include "../ds/helpers.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <atomic>
|
||||
#include <utility>
|
||||
|
||||
namespace snmalloc
|
||||
{
|
||||
@@ -274,7 +275,7 @@ namespace snmalloc
|
||||
auto leaf_ix = get_leaf_index<true>(p, success);
|
||||
size_t ix = leaf_ix.second;
|
||||
|
||||
auto last = std::min(LEAF_MASK + 1, ix + length);
|
||||
auto last = bits::min(LEAF_MASK + 1, ix + length);
|
||||
|
||||
auto diff = last - ix;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user