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
This commit is contained in:
parent
dfecbbe1f4
commit
e4ee61d6c3
8 changed files with 288 additions and 200 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue