Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 6aa7ebd

Browse files
authored
Move Vector<T> to the shared CoreLib partition. (#26656)
* Move Vector<T> to the shared CoreLib partition. This is in support of eventually compiling it into System.Private.CoreLib. That way we can use it in other corelib algorithms. * Update Test project to link to new CoreLib file path
1 parent 3b69635 commit 6aa7ebd

File tree

12 files changed

+32
-14
lines changed

12 files changed

+32
-14
lines changed

src/System.Numerics.Vectors/src/System/Numerics/ConstantHelper.cs renamed to src/Common/src/CoreLib/System/Numerics/ConstantHelper.cs

File renamed without changes.

src/System.Numerics.Vectors/src/System/Numerics/ConstantHelper.tt renamed to src/Common/src/CoreLib/System/Numerics/ConstantHelper.tt

File renamed without changes.

src/System.Numerics.Vectors/src/System/Numerics/GenerationConfig.ttinclude renamed to src/Common/src/CoreLib/System/Numerics/GenerationConfig.ttinclude

File renamed without changes.

src/System.Numerics.Vectors/src/System/Numerics/JitIntrinsicAttribute.cs renamed to src/Common/src/CoreLib/System/Numerics/JitIntrinsicAttribute.cs

File renamed without changes.

src/System.Numerics.Vectors/src/System/Numerics/Register.cs renamed to src/Common/src/CoreLib/System/Numerics/Register.cs

File renamed without changes.

src/System.Numerics.Vectors/src/System/Numerics/Register.tt renamed to src/Common/src/CoreLib/System/Numerics/Register.tt

File renamed without changes.
File renamed without changes.
File renamed without changes.

src/System.Numerics.Vectors/src/System/Numerics/Vector_Operations.cs renamed to src/Common/src/CoreLib/System/Numerics/Vector_Operations.cs

File renamed without changes.

src/System.Numerics.Vectors/src/System.Numerics.Vectors.csproj

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,37 @@
2323
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'uap-Windows_NT-Release|AnyCPU'" />
2424
<!-- Shared -->
2525
<ItemGroup>
26-
<Compile Include="..\..\Common\src\System\Numerics\Hashing\HashHelpers.cs">
26+
<Compile Include="$(CommonPath)\System\Numerics\Hashing\HashHelpers.cs">
2727
<Link>Common\System\Numerics\Hashing\HashHelpers.cs</Link>
2828
</Compile>
29-
<Compile Include="System\Numerics\ConstantHelper.cs">
29+
<Compile Include="$(CommonPath)\CoreLib\System\Numerics\ConstantHelper.cs">
3030
<AutoGen>True</AutoGen>
3131
<DesignTime>True</DesignTime>
3232
<DependentUpon>ConstantHelper.tt</DependentUpon>
33+
<Link>System\Numerics\ConstantHelper.cs</Link>
3334
</Compile>
34-
<Compile Include="System\Numerics\JitIntrinsicAttribute.cs" />
35-
<Compile Include="System\Numerics\Register.cs">
35+
<Compile Include="$(CommonPath)\CoreLib\System\Numerics\JitIntrinsicAttribute.cs">
36+
<Link>System\Numerics\JitIntrinsicAttribute.cs</Link>
37+
</Compile>
38+
<Compile Include="$(CommonPath)\CoreLib\System\Numerics\Register.cs">
3639
<AutoGen>True</AutoGen>
3740
<DesignTime>True</DesignTime>
3841
<DependentUpon>Register.tt</DependentUpon>
42+
<Link>System\Numerics\Register.cs</Link>
3943
</Compile>
40-
<Compile Include="System\Numerics\Vector.cs">
44+
<Compile Include="$(CommonPath)\CoreLib\System\Numerics\Vector.cs">
4145
<AutoGen>True</AutoGen>
4246
<DesignTime>True</DesignTime>
4347
<DependentUpon>Vector.tt</DependentUpon>
48+
<Link>System\Numerics\Vector.cs</Link>
49+
</Compile>
50+
<Compile Include="$(CommonPath)\CoreLib\System\Numerics\Vector_Operations.cs">
51+
<Link>System\Numerics\Vector_Operations.cs</Link>
4452
</Compile>
45-
<Compile Include="System\Numerics\Vector_Operations.cs" />
4653
</ItemGroup>
4754
<!-- Carry a copy of MathF where not available -->
4855
<ItemGroup Condition="'$(IsPartialFacadeAssembly)' == 'true' OR $(TargetGroup.StartsWith('netstandard'))">
49-
<Compile Include="..\..\Common\src\System\MathF.netstandard.cs">
56+
<Compile Include="$(CommonPath)\System\MathF.netstandard.cs">
5057
<Link>System\MathF.netstandard.cs</Link>
5158
</Compile>
5259
</ItemGroup>
@@ -68,18 +75,23 @@
6875
<Reference Include="System.Numerics" />
6976
</ItemGroup>
7077
<ItemGroup>
71-
<None Include="System\Numerics\GenerationConfig.ttinclude" />
72-
<Content Include="System\Numerics\ConstantHelper.tt">
78+
<None Include="$(CommonPath)\CoreLib\System\Numerics\GenerationConfig.ttinclude">
79+
<Link>System\Numerics\GenerationConfig.ttinclude</Link>
80+
</None>
81+
<Content Include="$(CommonPath)\CoreLib\System\Numerics\ConstantHelper.tt">
7382
<Generator>TextTemplatingFileGenerator</Generator>
7483
<LastGenOutput>ConstantHelper.cs</LastGenOutput>
84+
<Link>System\Numerics\ConstantHelper.tt</Link>
7585
</Content>
76-
<Content Include="System\Numerics\Register.tt">
86+
<Content Include="$(CommonPath)\CoreLib\System\Numerics\Register.tt">
7787
<Generator>TextTemplatingFileGenerator</Generator>
7888
<LastGenOutput>Register.cs</LastGenOutput>
89+
<Link>System\Numerics\Register.tt</Link>
7990
</Content>
80-
<Content Include="System\Numerics\Vector.tt">
91+
<Content Include="$(CommonPath)\CoreLib\System\Numerics\Vector.tt">
8192
<Generator>TextTemplatingFileGenerator</Generator>
8293
<LastGenOutput>Vector.cs</LastGenOutput>
94+
<Link>System\Numerics\Vector.tt</Link>
8395
</Content>
8496
<Reference Include="System.Diagnostics.Tools" />
8597
<Reference Include="System.Globalization" />

0 commit comments

Comments
 (0)