From b850eb834004d03381896b975a34bfe35f12b294 Mon Sep 17 00:00:00 2001 From: boufaras Date: Thu, 27 Jan 2011 12:54:34 +0000 Subject: [PATCH] git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2077 331e1502-861f-0410-8da2-ba01fb791d7f --- .../src/neighborhood/moKswapNeighborhood.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/trunk/paradiseo-mo/src/neighborhood/moKswapNeighborhood.h b/trunk/paradiseo-mo/src/neighborhood/moKswapNeighborhood.h index 55c036b4c..fb1cd68aa 100644 --- a/trunk/paradiseo-mo/src/neighborhood/moKswapNeighborhood.h +++ b/trunk/paradiseo-mo/src/neighborhood/moKswapNeighborhood.h @@ -50,7 +50,7 @@ static int factorial(int i) { * @param _Kswap the number of swap */ -static int sizeMapping(int _size,unsigned int _Kswap) { +static int sizeMapping(int _size, unsigned int _Kswap) { int _sizeMapping = _size; for (int i = _Kswap; i > 0; i--) { @@ -81,8 +81,8 @@ public: * @param _Kswap the number of swap */ - moKswapNeighborhood(unsigned int _size,unsigned int _Kswap) : - moOrderNeighborhood (sizeMapping(_size,_Kswap)) { + moKswapNeighborhood(unsigned int _size, unsigned int _Kswap) : + moOrderNeighborhood (sizeMapping(_size, _Kswap)) { mutex = true; size = _size; @@ -174,8 +174,7 @@ public: mapping[id + k * neighborhoodSize] = _indices[k]; } - mapping[id + Kswap * neighborhoodSize] - = _indices[Kswap]++; + mapping[id + Kswap * neighborhoodSize] = _indices[Kswap]++; id++; } @@ -195,9 +194,9 @@ public: } /** - * Compute the next combination of mapping indices - * @param _indices the current combination of indices - * @param _indice compute next combination of indices from this index + * Compute the next combination of mapping indexes + * @param _indices the current combination of indexes + * @param _indice compute next combination of indexes from this index */ bool nextIndices(unsigned int* _indices, int _indice) {