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
@@ -452,5 +452,17 @@ namespace snmalloc
|
||||
return (size_t)1 << (m_e + LOW_BITS);
|
||||
}
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
constexpr inline T min(T t1, T t2)
|
||||
{
|
||||
return t1 < t2 ? t1 : t2;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
constexpr inline T max(T t1, T t2)
|
||||
{
|
||||
return t1 > t2 ? t1 : t2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "bits.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <utility>
|
||||
#include "helpers.h"
|
||||
|
||||
namespace snmalloc
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user