first attempt to write inline ASM in C#, failed due to proteted ram
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user