first attempt to write inline ASM in C#, failed due to proteted ram

This commit is contained in:
Nitload
2023-04-22 03:40:36 +08:00
parent 906becc265
commit 1cb78e9e8f
78 changed files with 9595 additions and 56 deletions
@@ -0,0 +1,22 @@
using StgSharp.Math;
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Optimization
{
public static unsafe partial class SSE
{
public static m128 ToM128(this vec2d vec)
{
return *(m128*)&vec;
}
public static m128 ToVec4D(this m128 m)
{
return *(m128*)&m;
}
}
}