This commit is contained in:
Nitload
2024-06-10 15:12:08 +08:00
parent f6963b8e00
commit be6c2e6b92
305 changed files with 28336 additions and 5938 deletions
+37
View File
@@ -0,0 +1,37 @@
using StgSharp.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.Math.HighPrecession
{
[StructLayout(LayoutKind.Sequential)]
public unsafe struct M256:IMemoryType
{
private M128 v0;
private M128 v1;
T IMemoryType.Read<T>(int index)
{
fixed (M128* mptr = &v0)
{
return *(((T*)mptr) + index);
}
}
void IMemoryType.Write<T>(int index, T value)
{
fixed (M128* mptr = &v0)
{
*(((T*)mptr) + index) = value;
}
}
}
}