Remove SSE2-specific logic from UTF-16 validation code (#52349)
authorLevi Broderick <GrabYourPitchforks@users.noreply.github.com>
Thu, 6 May 2021 22:36:31 +0000 (15:36 -0700)
committerGitHub <noreply@github.com>
Thu, 6 May 2021 22:36:31 +0000 (15:36 -0700)
commit89df0efae7e55476d8f20ce6aa7119768aa0ae10
treec53895ef2e4089ac7a5ed5c7c696f8145dabd944
parent54ce2b969e8d2cf8c77ea3a756bd830940f62b02
Remove SSE2-specific logic from UTF-16 validation code (#52349)

If a device does not support SSE41 but does support SIMD hardware acceleration, this method will fall back down generalized Vector-enabled code paths.
src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf16Utility.Validation.cs
src/libraries/System.Runtime/tests/System/Text/Unicode/Utf16UtilityTests.ValidateChars.cs