using System; using System.Collections.Generic; using System.IO; using System.Runtime.InteropServices; using System.Text; namespace StgSharp.Math { [StructLayout(LayoutKind.Explicit)] internal struct MatSize { [FieldOffset(0)] internal ushort sizePair; [FieldOffset(0)] internal byte width; [FieldOffset(1)] internal byte height; } public static unsafe partial class SSE { internal static IntPtr defaultM128Ptr = internalIO.set_m128ptr_default_internal(); internal static IntPtr defaultM256Ptr; public enum Registor : byte { XMM0 = 0, XMM1 = 1, XMM2 = 2, XMM3 = 3, XMM4 = 4, XMM5 = 5, XMM6 = 6, XMM7 = 7 } static SSE() { } public static Vec4d addps(Vec4d vec1, Vec4d vec2) { return new Vec4d( internalIO.addps_internal(vec1._m128Ptr,vec2._m128Ptr) ) ; } } }