X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ea74f5d95928a521a588737e81f1de94eef25d19..872cf95ab5a2b08aa1f2c6ebba29b9f86b0ba54e:/src/mc/mc_mmu.hpp diff --git a/src/mc/mc_mmu.hpp b/src/mc/mc_mmu.hpp index 15f07181ff..d1c2e02bfd 100644 --- a/src/mc/mc_mmu.hpp +++ b/src/mc/mc_mmu.hpp @@ -18,15 +18,8 @@ extern "C" int xbt_pagesize; /** Number of bits of addresses inside a given page, log2(xbt_pagesize). */ extern "C" int xbt_pagebits; -namespace simgrid { -namespace mc { +namespace simgrid::mc::mmu { // TODO, do not depend on xbt_pagesize/xbt_pagebits but our own chunk size -namespace mmu { - -static int chunk_size() -{ - return xbt_pagesize; -} /** @brief How many memory pages are necessary to store size bytes? * @@ -62,8 +55,6 @@ static XBT_ALWAYS_INLINE bool same_chunk(std::uintptr_t a, std::uintptr_t b) { return (a >> xbt_pagebits) == (b >> xbt_pagebits); } -} -} -} +} // namespace simgrid::mc::mmu #endif