From bc0d60e20a70cddb26216b92fc452e8406102d51 Mon Sep 17 00:00:00 2001 From: boufaras Date: Thu, 12 May 2011 13:55:21 +0000 Subject: [PATCH] git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2226 331e1502-861f-0410-8da2-ba01fb791d7f --- .../ParadisEO-GPU/src/GPUType/moGPUBitVector.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/branches/ParadisEO-GPU/src/GPUType/moGPUBitVector.h b/branches/ParadisEO-GPU/src/GPUType/moGPUBitVector.h index 0aad7cb0e..42b554850 100644 --- a/branches/ParadisEO-GPU/src/GPUType/moGPUBitVector.h +++ b/branches/ParadisEO-GPU/src/GPUType/moGPUBitVector.h @@ -105,21 +105,20 @@ public: *@param _size the vector size */ - virtual inline __host__ void setSize(unsigned _size) { + void setSize(unsigned _size) { - if(_size tmp_vect(_size); for (unsigned i = 0; i < tmp_vect.N; i++) - tmp_vect.vect[i]= vect[i]; + tmp_vect.vect[i] = vect[i]; (tmp_vect).invalidate(); - (*this)=tmp_vect; - } - else if(_size>N) { + (*this) = tmp_vect; + } else if (_size > N) { moGPUBitVector tmp_vect(_size); - for (unsigned i = 0; i