X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a36e8044de323971221f5da46773d54e312d3b3c..da6a8948438ab0798f492ed7bf5dad2a515ca04e:/src/mc/PageStore.cpp diff --git a/src/mc/PageStore.cpp b/src/mc/PageStore.cpp index 78f28e68fc..feef524b97 100644 --- a/src/mc/PageStore.cpp +++ b/src/mc/PageStore.cpp @@ -12,9 +12,11 @@ # define MAP_POPULATE MAP_PREFAULT_READ #endif -#include -#include -#include +#include "xbt/base.h" +#include "xbt/log.h" +#include "xbt/sysdep.h" + +#include "src/internal_config.h" #include "src/mc/PageStore.hpp" @@ -34,8 +36,7 @@ namespace mc { * @param data Memory page * @return hash off the page */ -static inline __attribute__ ((always_inline)) -PageStore::hash_type mc_hash_page(const void* data) +static XBT_ALWAYS_INLINE PageStore::hash_type mc_hash_page(const void* data) { const std::uint64_t* values = (const uint64_t*) data; std::size_t n = xbt_pagesize / sizeof(uint64_t);