fix bug on BitSet UnSet

pull/5/head
Evan Hemsley 2019-12-22 22:02:17 -08:00
parent d6b96cd470
commit 51a248156e
1 changed files with 4 additions and 4 deletions

View File

@ -106,19 +106,19 @@ namespace Encompass.Collections
{
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)
{
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)
{
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)
{
return new BitSet512(A, B, C, D & ~Vector128Builder.Build(index % 256));
return new BitSet512(A, B, C, D & ~Vector128Builder.Build(index % 128));
}
else
{