Merge branch 'master' of github.com:jaquadro/Substrate

This commit is contained in:
Justin Aquadro 2013-04-18 00:56:29 -04:00
commit ba18b4b59a

View file

@ -30,13 +30,9 @@ namespace Substrate.Core
get { return (_array0[x, y, z] << _array1.DataWidth) + _array1[x, y, z]; } get { return (_array0[x, y, z] << _array1.DataWidth) + _array1[x, y, z]; }
set set
{ {
if (value >= (1 << _array1.DataWidth)) {
_array0[x, y, z] = value >> _array1.DataWidth; _array0[x, y, z] = value >> _array1.DataWidth;
_array1[x, y, z] = value & _mask1; _array1[x, y, z] = value & _mask1;
} }
else
_array1[x, y, z] = value;
}
} }
public int XDim public int XDim
@ -69,13 +65,9 @@ namespace Substrate.Core
get { return (_array0[i] << _array1.DataWidth) + _array1[i]; } get { return (_array0[i] << _array1.DataWidth) + _array1[i]; }
set set
{ {
if (value >= (1 << _array1.DataWidth)) {
_array0[i] = value >> _array1.DataWidth; _array0[i] = value >> _array1.DataWidth;
_array1[i] = value & _mask1; _array1[i] = value & _mask1;
} }
else
_array1[i] = value;
}
} }
public int Length public int Length