Optimized code (Plymorphism)

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2190 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
boufaras 2011-03-14 16:59:33 +00:00
commit 959962bdcd

View file

@ -64,12 +64,8 @@ class moCudaBitVector: public moCudaVector<bool, Fitness> {
*@param _size The neighborhood size. *@param _size The neighborhood size.
*/ */
moCudaBitVector(unsigned _size) { moCudaBitVector(unsigned _size) :
moCudaVector<bool, Fitness> (_size) {
N = _size;
vect = new bool[_size];
create(); create();
} }
@ -81,9 +77,7 @@ class moCudaBitVector: public moCudaVector<bool, Fitness> {
moCudaBitVector(unsigned _size, bool _b) { moCudaBitVector(unsigned _size, bool _b) {
N = _size; moCudaVector<bool, Fitness>:: moCudaVector(_size);
vect = new bool[_size];
for (unsigned i = 0; i < _size; i++) for (unsigned i = 0; i < _size; i++)
vect[i] = _b; vect[i] = _b;