fix bug on BitSet UnSet
parent
d6b96cd470
commit
51a248156e
|
@ -106,19 +106,19 @@ namespace Encompass.Collections
|
||||||
{
|
{
|
||||||
if (index < 128)
|
if (index < 128)
|
||||||
{
|
{
|
||||||
return new BitSet512(A & ~Vector128Builder.Build(index % 256), B, C, D);
|
return new BitSet512(A & ~Vector128Builder.Build(index % 128), B, C, D);
|
||||||
}
|
}
|
||||||
else if (index < 256)
|
else if (index < 256)
|
||||||
{
|
{
|
||||||
return new BitSet512(A, B & ~Vector128Builder.Build(index % 256), C, D);
|
return new BitSet512(A, B & ~Vector128Builder.Build(index % 128), C, D);
|
||||||
}
|
}
|
||||||
else if (index < 384)
|
else if (index < 384)
|
||||||
{
|
{
|
||||||
return new BitSet512(A, B, C & ~Vector128Builder.Build(index % 256), D);
|
return new BitSet512(A, B, C & ~Vector128Builder.Build(index % 128), D);
|
||||||
}
|
}
|
||||||
else if (index < 512)
|
else if (index < 512)
|
||||||
{
|
{
|
||||||
return new BitSet512(A, B, C, D & ~Vector128Builder.Build(index % 256));
|
return new BitSet512(A, B, C, D & ~Vector128Builder.Build(index % 128));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue