X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5c856ab29791883f3ca4f8d526bac816cb08546d..045febe057cdab268bf1d2aedae1f6db9333672d:/src/surf/surf_private.h?ds=inline diff --git a/src/surf/surf_private.h b/src/surf/surf_private.h index f819a0987c..ca40937ac2 100644 --- a/src/surf/surf_private.h +++ b/src/surf/surf_private.h @@ -46,6 +46,11 @@ void surf_action_set_data(surf_action_t action, void *data); FILE *surf_fopen(const char *name, const char *mode); +static _XBT_INLINE void surf_double_update(double *variable, double value) +{ + *variable -= value; + if(*variable< 0.00001) *variable = 0.0; +} extern lmm_system_t maxmin_system; extern tmgr_history_t history; extern xbt_dynar_t surf_path;