diff options
| author | Ficture Seven <FICTURE7@gmail.com> | 2020-04-17 02:19:20 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-17 08:19:20 +1000 |
| commit | e4ee61d6c3984d108a9fd9e29c86dd154a04d0c5 (patch) | |
| tree | a8fc7cdd10b00ae9cc3ff49bd31ea4a1074a4a06 /ARMeilleure/State/NativeContext.cs | |
| parent | dfecbbe1f46a10648c754aa5559f60661f2d1189 (diff) | |
Improve V128 (#1097)
* Improve V128
* Use LayoutKind.Sequential instead
* Add As<T>, Get<T> & Set<T>
* Fix CpuTest
* Rename Get<T> & Set<T> to Extract<T> & Insert<T>
* Add XML documentation
* Nit
Diffstat (limited to 'ARMeilleure/State/NativeContext.cs')
| -rw-r--r-- | ARMeilleure/State/NativeContext.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ARMeilleure/State/NativeContext.cs b/ARMeilleure/State/NativeContext.cs index 0ab9a3fd..95d976ee 100644 --- a/ARMeilleure/State/NativeContext.cs +++ b/ARMeilleure/State/NativeContext.cs @@ -67,8 +67,8 @@ namespace ARMeilleure.State int offset = RegisterConsts.IntRegsCount * IntSize + index * VecSize; - Marshal.WriteInt64(BasePtr, offset + 0, value.GetInt64(0)); - Marshal.WriteInt64(BasePtr, offset + 8, value.GetInt64(1)); + Marshal.WriteInt64(BasePtr, offset + 0, value.Extract<long>(0)); + Marshal.WriteInt64(BasePtr, offset + 8, value.Extract<long>(1)); } public bool GetPstateFlag(PState flag) |
