X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9cca09ad88fcaeb49f2637de97df519c3920aaa4..1bf033cc925aa31693ef5163ea056fde5b75ff1e:/src/smpi/internals/smpi_dvfs.cpp diff --git a/src/smpi/internals/smpi_dvfs.cpp b/src/smpi/internals/smpi_dvfs.cpp index 69e8a08892..8fe3b4e702 100644 --- a/src/smpi/internals/smpi_dvfs.cpp +++ b/src/smpi/internals/smpi_dvfs.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2013-2018. 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. */ @@ -76,7 +76,6 @@ typedef int integer; typedef long int integer; #endif typedef char *address; -typedef short int shortint; typedef float real; typedef double doublereal; struct complex { @@ -88,31 +87,31 @@ struct doublecomplex { doublereal i; }; -extern "C" XBT_PUBLIC(doublereal) smpi_get_host_power_peak_at_(integer *pstate_index); +extern "C" XBT_PUBLIC doublereal smpi_get_host_power_peak_at_(integer* pstate_index); doublereal smpi_get_host_power_peak_at_(integer *pstate_index) { return static_cast(smpi_get_host_power_peak_at((int)*pstate_index)); } -extern "C" XBT_PUBLIC(doublereal) smpi_get_host_current_power_peak_(); +extern "C" XBT_PUBLIC doublereal smpi_get_host_current_power_peak_(); doublereal smpi_get_host_current_power_peak_() { return smpi_get_host_current_power_peak(); } -extern "C" XBT_PUBLIC(integer) smpi_get_host_nb_pstates_(); +extern "C" XBT_PUBLIC integer smpi_get_host_nb_pstates_(); integer smpi_get_host_nb_pstates_() { return static_cast(smpi_get_host_nb_pstates()); } -extern "C" XBT_PUBLIC(void) smpi_set_host_pstate_(integer *pstate_index); +extern "C" XBT_PUBLIC void smpi_set_host_pstate_(integer* pstate_index); void smpi_set_host_pstate_(integer *pstate_index) { smpi_set_host_pstate(static_cast(*pstate_index)); } -extern "C" XBT_PUBLIC(doublereal) smpi_get_host_consumed_energy_(); +extern "C" XBT_PUBLIC doublereal smpi_get_host_consumed_energy_(); doublereal smpi_get_host_consumed_energy_() { return static_cast(smpi_get_host_consumed_energy());