-/* Copyright (c) 2014-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2014-2022. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/** 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?
*
{
return (a >> xbt_pagebits) == (b >> xbt_pagebits);
}
-}
-}
-}
+} // namespace simgrid::mc::mmu
#endif