Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTanner Gooding <tagoo@outlook.com>2018-01-19 02:58:40 +0300
committerTanner Gooding <tagoo@outlook.com>2018-01-26 04:57:19 +0300
commit2cdb8eb02ed7f8de8a6c7336763e727d287c1599 (patch)
treeca5198088a966366fc9791c723f63f01d71f5e4c /src
parente274885db32ec40b327ed4dcb3439aca41d29844 (diff)
Adding the `Vector64<T>` type to the S.R.Intrinsics assembly
Diffstat (limited to 'src')
-rw-r--r--src/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.cs (renamed from src/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.X86.cs)16
-rw-r--r--src/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.csproj4
2 files changed, 15 insertions, 5 deletions
diff --git a/src/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.X86.cs b/src/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.cs
index 0f3f24effb..123eaae4a9 100644
--- a/src/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.X86.cs
+++ b/src/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.cs
@@ -9,12 +9,22 @@ using System.Runtime.InteropServices;
namespace System.Runtime.Intrinsics
{
+ [StructLayout(LayoutKind.Sequential, Size = 8)]
+ public struct Vector64<T> where T : struct
+ {
+ private int _dummy;
+ }
[StructLayout(LayoutKind.Sequential, Size = 16)]
- public struct Vector128<T> where T : struct {}
+ public struct Vector128<T> where T : struct
+ {
+ private int _dummy;
+ }
[StructLayout(LayoutKind.Sequential, Size = 32)]
- public struct Vector256<T> where T : struct {}
+ public struct Vector256<T> where T : struct
+ {
+ private int _dummy;
+ }
}
-
namespace System.Runtime.Intrinsics.X86
{
public static class Aes
diff --git a/src/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.csproj b/src/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.csproj
index 78a1f4b8fd..f699e7a679 100644
--- a/src/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.csproj
+++ b/src/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.csproj
@@ -9,10 +9,10 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Release|AnyCPU'" />
<ItemGroup>
- <Compile Include="System.Runtime.Intrinsics.X86.cs" />
+ <Compile Include="System.Runtime.Intrinsics.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\System.Runtime\ref\System.Runtime.csproj" />
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
-</Project> \ No newline at end of file
+</Project>