diff --git a/src/libraries/System.Private.CoreLib/src/System/SearchValues/Strings/Helpers/TeddyHelper.cs b/src/libraries/System.Private.CoreLib/src/System/SearchValues/Strings/Helpers/TeddyHelper.cs index b73302a287eece..294da0a047f372 100644 --- a/src/libraries/System.Private.CoreLib/src/System/SearchValues/Strings/Helpers/TeddyHelper.cs +++ b/src/libraries/System.Private.CoreLib/src/System/SearchValues/Strings/Helpers/TeddyHelper.cs @@ -207,8 +207,12 @@ public static (Vector512 Result, Vector512 Prev0, Vector512 Pr return (result, match0, match1); } - // Read two Vector512 and concatenate their lower bytes together into a single Vector512. - // On X86, characters above 32767 are turned into 0, but we account for that by not using Teddy if any of the string values contain a 0. + /// + /// Read two and concatenate their lower bytes together into a single . + /// + /// + /// On X86, characters above 32767 are turned into 0, but we account for that by not using Teddy if any of the string values contain a 0. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [CompExactlyDependsOn(typeof(Sse2))] [CompExactlyDependsOn(typeof(AdvSimd))] @@ -233,8 +237,12 @@ public static Vector128 LoadAndPack16AsciiChars(ref char source) } } - // Read two Vector512 and concatenate their lower bytes together into a single Vector512. - // Characters above 32767 are turned into 0, but we account for that by not using Teddy if any of the string values contain a 0. + /// + /// Read two and concatenate their lower bytes together into a single . + /// + /// + /// On X86, characters above 32767 are turned into 0, but we account for that by not using Teddy if any of the string values contain a 0. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [CompExactlyDependsOn(typeof(Avx2))] public static Vector256 LoadAndPack32AsciiChars(ref char source) @@ -247,8 +255,12 @@ public static Vector256 LoadAndPack32AsciiChars(ref char source) return PackedSpanHelpers.FixUpPackedVector256Result(packed); } - // Read two Vector512 and concatenate their lower bytes together into a single Vector512. - // Characters above 32767 are turned into 0, but we account for that by not using Teddy if any of the string values contain a 0. + /// + /// Read two and concatenate their lower bytes together into a single . + /// + /// + /// On X86, characters above 32767 are turned into 0, but we account for that by not using Teddy if any of the string values contain a 0. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [CompExactlyDependsOn(typeof(Avx512BW))] public static Vector512 LoadAndPack64AsciiChars(ref char source)