Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Avoid duplicate declaration.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 6 Feb 2023 13:22:07 +0000 (14:22 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 6 Feb 2023 13:22:07 +0000 (14:22 +0100)
include/xbt/base.h
src/mc/mc_mmu.hpp

index 6f4c6b6..5b55cb7 100644 (file)
 #  define XBT_ATTRIB_DESTRUCTOR(prio) __attribute__((__destructor__))
 #endif
 
-#ifndef XBT_ALWAYS_INLINE /* defined also in libsosp */
-#  if defined(__GNUC__)
-#    define XBT_ALWAYS_INLINE inline __attribute__ ((always_inline))
-#  else
-#    define XBT_ALWAYS_INLINE inline
-#  endif
+#if defined(__GNUC__)
+#define XBT_ALWAYS_INLINE inline __attribute__((always_inline))
+#else
+#define XBT_ALWAYS_INLINE inline
 #endif
 
 /* Stringify argument. */
index 83f57e8..bbeedf1 100644 (file)
@@ -6,18 +6,10 @@
 #ifndef SIMGRID_MC_MMU_HPP
 #define SIMGRID_MC_MMU_HPP
 
+#include "xbt/misc.h"
 #include <cstdint>
 #include <utility>
 
-#ifndef XBT_ALWAYS_INLINE
-#define XBT_ALWAYS_INLINE inline __attribute__((always_inline))
-#endif
-
-/** Size of a memory page for the current system. */
-extern "C" int xbt_pagesize;
-/** Number of bits of addresses inside a given page, log2(xbt_pagesize). */
-extern "C" int xbt_pagebits;
-
 namespace simgrid::mc::mmu {
 // TODO, do not depend on xbt_pagesize/xbt_pagebits but our own chunk size