diff options
author | Carol Eidt <carol.eidt@microsoft.com> | 2015-05-08 19:09:51 -0700 |
---|---|---|
committer | Carol Eidt <carol.eidt@microsoft.com> | 2015-05-08 19:09:51 -0700 |
commit | 145c4e67e8bdfb8a73c0ae5202512f890cf1a8b7 (patch) | |
tree | 4b7d4a73a17d3a4cc0d113dcc5e8317a5f7c7b57 /src/vm/assembly.cpp | |
parent | 7e1feb13e75e35222886235e1239c4d9636d11c0 (diff) | |
download | coreclr-145c4e67e8bdfb8a73c0ae5202512f890cf1a8b7.tar.gz coreclr-145c4e67e8bdfb8a73c0ae5202512f890cf1a8b7.tar.bz2 coreclr-145c4e67e8bdfb8a73c0ae5202512f890cf1a8b7.zip |
Recognize System.Numerics as a SIMDVectorAssembly (1168471)
With the refactoring of the SIMD Vector types, System.Numerics needs to also be marked as a SIMDVectorAssembly.
[tfs-changeset: 1467781]
Diffstat (limited to 'src/vm/assembly.cpp')
-rw-r--r-- | src/vm/assembly.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/vm/assembly.cpp b/src/vm/assembly.cpp index ba65f13bfa..c7807f7e14 100644 --- a/src/vm/assembly.cpp +++ b/src/vm/assembly.cpp @@ -300,10 +300,13 @@ void Assembly::Init(AllocMemTracker *pamTracker, LoaderAllocator *pLoaderAllocat #endif // FEATURE_TRACELOGGING - // Check for the special System.Numerics.Vectors assembly. - // If we encounter a non-trusted assembly by this name, we will simply not recognize any of its + // Check for the assemblies that contain SIMD Vector types. + // If we encounter a non-trusted assembly with these names, we will simply not recognize any of its // methods as intrinsics. - if (!strcmp(GetSimpleName(), "System.Numerics.Vectors")) + LPCUTF8 assemblyName = GetSimpleName(); + int length = sizeof("System.Numerics") - 1; + if ((strncmp(assemblyName, "System.Numerics", length) == 0) && + ((assemblyName[length] == '\0') || (strcmp(assemblyName+length, ".Vectors") == 0))) { m_fIsSIMDVectorAssembly = true; } |