From b57390663e991daa6f1329f2d52c2f286116a9b0 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Wed, 13 Oct 2021 15:29:10 +0100 Subject: [PATCH] address_cast SNMALLOC_FAST_PATH --- src/ds/address.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ds/address.h b/src/ds/address.h index 81739ac..ae1c553 100644 --- a/src/ds/address.h +++ b/src/ds/address.h @@ -63,7 +63,7 @@ namespace snmalloc * Cast from a pointer type to an address. */ template - inline address_t address_cast(T* ptr) + inline SNMALLOC_FAST_PATH address_t address_cast(T* ptr) { return reinterpret_cast(ptr); } @@ -77,7 +77,7 @@ namespace snmalloc */ template - inline address_t address_cast(CapPtr a) + inline SNMALLOC_FAST_PATH address_t address_cast(CapPtr a) { return address_cast(a.unsafe_ptr()); }