From 54037339d01e1596cf2b97ba56e142bce5bce42e Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 4 Nov 2013 11:57:00 +0100 Subject: [PATCH] Inline is overkill for this function. --- examples/smpi/MM/Summa.c | 19 +++++++++---------- src/simix/smx_context.c | 2 +- src/xbt/dynar.c | 2 +- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/examples/smpi/MM/Summa.c b/examples/smpi/MM/Summa.c index a53ac43490..b2fb9aaa8a 100644 --- a/examples/smpi/MM/Summa.c +++ b/examples/smpi/MM/Summa.c @@ -11,16 +11,15 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(MM_Summa, "Messages specific for this msg example"); -inline double Summa( - double *a, double *b, double *c, - size_t lda, size_t ldb, size_t ldc, - size_t m, size_t k_a, size_t k_b, size_t n, - size_t Block_size, size_t start, size_t end, - size_t row, size_t col, size_t size_row, size_t size_col, - double *a_local, double *b_local, - MPI_Datatype Block_a, MPI_Datatype Block_a_local, - MPI_Datatype Block_b, - MPI_Comm row_comm, MPI_Comm col_comm, int subs) +double Summa(double *a, double *b, double *c, + size_t lda, size_t ldb, size_t ldc, + size_t m, size_t k_a, size_t k_b, size_t n, + size_t Block_size, size_t start, size_t end, + size_t row, size_t col, size_t size_row, size_t size_col, + double *a_local, double *b_local, + MPI_Datatype Block_a, MPI_Datatype Block_a_local, + MPI_Datatype Block_b, + MPI_Comm row_comm, MPI_Comm col_comm, int subs) { double *B_a , *B_b ; //matrix blocks size_t err; diff --git a/src/simix/smx_context.c b/src/simix/smx_context.c index e638bb7e76..707cf7708d 100644 --- a/src/simix/smx_context.c +++ b/src/simix/smx_context.c @@ -127,7 +127,7 @@ XBT_INLINE int SIMIX_context_get_nthreads(void) { * * \param nb_threads the number of threads to use */ -XBT_INLINE void SIMIX_context_set_nthreads(int nb_threads) { +void SIMIX_context_set_nthreads(int nb_threads) { if (nb_threads<=0) { nb_threads = xbt_os_get_numcores(); XBT_INFO("Auto-setting contexts/nthreads to %d",nb_threads); diff --git a/src/xbt/dynar.c b/src/xbt/dynar.c index 7517190b53..d6d46117af 100644 --- a/src/xbt/dynar.c +++ b/src/xbt/dynar.c @@ -707,7 +707,7 @@ XBT_INLINE void * xbt_dynar_to_array (xbt_dynar_t dynar) /* * Return 0 if d1 and d2 are equal and 1 if not equal */ -XBT_INLINE int xbt_dynar_compare(xbt_dynar_t d1, xbt_dynar_t d2, +int xbt_dynar_compare(xbt_dynar_t d1, xbt_dynar_t d2, int(*compar)(const void *, const void *)) { int i ; -- 2.20.1