X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f734ec7475682eb90323e804cbcfddd7e4523992..72bcdd6c079bd27b3e4e1e5a5552ca97a4f2bf19:/src/include/surf/maxmin.hpp diff --git a/src/include/surf/maxmin.hpp b/src/include/surf/maxmin.hpp index d635efd762..bdf2977e50 100644 --- a/src/include/surf/maxmin.hpp +++ b/src/include/surf/maxmin.hpp @@ -7,16 +7,10 @@ #define SURF_MAXMIN_HPP #include "src/internal_config.h" -#include "xbt/misc.h" +#include "surf/surf.hpp" #include "xbt/asserts.h" -#include "surf/datatypes.h" -#include - -namespace simgrid { -namespace surf { -class Action; -} -} +#include "xbt/misc.h" +#include /** @addtogroup SURF_lmm * @details @@ -131,13 +125,13 @@ XBT_PUBLIC_DATA(double) sg_maxmin_precision; XBT_PUBLIC_DATA(double) sg_surf_precision; XBT_PUBLIC_DATA(int) sg_concurrency_limit; -static inline void double_update(double *variable, double value, double precision) +static inline void double_update(double* variable, double value, double precision) { - //printf("Updating %g -= %g +- %g\n",*variable,value,precision); - //xbt_assert(value==0 || value>precision); - //Check that precision is higher than the machine-dependent size of the mantissa. If not, brutal rounding may happen, - //and the precision mechanism is not active... - //xbt_assert(*variable< (2<precision); + // Check that precision is higher than the machine-dependent size of the mantissa. If not, brutal rounding may + // happen, and the precision mechanism is not active... + // xbt_assert(*variable< (2<