AdvSimd support for System.Text.Unicode.Utf8Utility.TranscodeToUtf8 (#39041)
authorCarlos Sanchez Lopez <1175054+carlossanlop@users.noreply.github.com>
Mon, 20 Jul 2020 22:04:40 +0000 (15:04 -0700)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2020 22:04:40 +0000 (15:04 -0700)
commit73247415306f537ef831f83b891d5559439ca182
tree710db0dfa4e718446d67485ed114ca00d1e8ba94
parent25b610624eb73b9c6c6c299ecd4d513650492bbf
AdvSimd support for System.Text.Unicode.Utf8Utility.TranscodeToUtf8 (#39041)

* AdvSimd support for System.Text.Unicode.Utf8Utility.TranscodeToUtf8

* Readd using to prevent build failure.
Add AdvSimd equivalent operation to TestZ.

* Inverted condition

* Address IsSupported order, improve use ExtractNarrowingSaturated usage

* Rename source to result, second argument utf16Data

* Improve CompareTest

* Add shims causing failures in Linux

* Use unsigned version of ExtractNarrowingSaturate, avoid using MinAcross and use MaxPairwise instead

* Missing support check for Sse2.X64

* Add missing case for AdvSimd

* Use MinPairwise for short
src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.Transcoding.cs
src/libraries/System.Utf8String.Experimental/src/System/Runtime/Intrinsics/Intrinsics.Shims.cs