NFC: move some capptr utility functions to that namespace

We'll want user_address_control_type in some particular PALs, so it can't live
in pal.h.

While here, make the spelling be capptr::is_spatial_refinement.
This commit is contained in:
Nathaniel Wesley Filardo
2021-10-17 18:37:38 +01:00
committed by Nathaniel Wesley Filardo
parent 1de28eead7
commit dba795ac6f
3 changed files with 45 additions and 45 deletions

View File

@@ -197,7 +197,7 @@ namespace snmalloc
{
// Impose constraints on bounds annotations.
static_assert(BIn::spatial >= capptr::dimension::Spatial::Chunk);
static_assert(capptr_is_spatial_refinement<BIn, BOut>());
static_assert(capptr::is_spatial_refinement<BIn, BOut>());
UNUSED(size);
return CapPtr<T, BOut>(a.template as_static<T>().unsafe_capptr);