back to matrix, simplified thread init

This commit is contained in:
Youmu Liu
2026-03-24 13:45:14 +08:00
parent eee88e1098
commit d960d02972
3 changed files with 41 additions and 33 deletions
+18 -2
View File
@@ -39,8 +39,8 @@ namespace StgSharp.Mathematics.Internal
internal unsafe struct SIMDID
{
[FieldOffset(0)]public fixed byte MaskByte[16];
[FieldOffset(0)]public ulong Mask;
[FieldOffset(0)] public fixed byte MaskByte[16];
[FieldOffset(0)] public ulong Mask;
internal SIMDID(
ulong data
@@ -54,5 +54,21 @@ namespace StgSharp.Mathematics.Internal
Unsafe.SkipInit(out this);
}
public static bool operator !=(
SIMDID left,
SIMDID right
)
{
return left.Mask != right.Mask;
}
public static bool operator ==(
SIMDID left,
SIMDID right
)
{
return left.Mask == right.Mask;
}
}
}