Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,12 @@ public static (Vector512<byte> Result, Vector512<byte> Prev0, Vector512<byte> Pr
return (result, match0, match1);
}

// Read two Vector512<ushort> and concatenate their lower bytes together into a single Vector512<byte>.
// 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.
/// <summary>
/// Read two <see cref="Vector128&lt;UInt16&gt;" /> and concatenate their lower bytes together into a single <see cref="Vector128&lt;Byte&gt;" />.
/// </summary>
/// <remarks>
/// 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.
/// </remarks>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[CompExactlyDependsOn(typeof(Sse2))]
[CompExactlyDependsOn(typeof(AdvSimd))]
Expand All @@ -233,8 +237,12 @@ public static Vector128<byte> LoadAndPack16AsciiChars(ref char source)
}
}

// Read two Vector512<ushort> and concatenate their lower bytes together into a single Vector512<byte>.
// 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.
/// <summary>
/// Read two <see cref="Vector256&lt;UInt16&gt;" /> and concatenate their lower bytes together into a single <see cref="Vector256&lt;Byte&gt;" />.
/// </summary>
/// <remarks>
/// 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.
/// </remarks>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[CompExactlyDependsOn(typeof(Avx2))]
public static Vector256<byte> LoadAndPack32AsciiChars(ref char source)
Expand All @@ -247,8 +255,12 @@ public static Vector256<byte> LoadAndPack32AsciiChars(ref char source)
return PackedSpanHelpers.FixUpPackedVector256Result(packed);
}

// Read two Vector512<ushort> and concatenate their lower bytes together into a single Vector512<byte>.
// 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.
/// <summary>
/// Read two <see cref="Vector512&lt;UInt16&gt;" /> and concatenate their lower bytes together into a single <see cref="Vector512&lt;Byte&gt;" />.
/// </summary>
/// <remarks>
/// 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.
/// </remarks>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[CompExactlyDependsOn(typeof(Avx512BW))]
public static Vector512<byte> LoadAndPack64AsciiChars(ref char source)
Expand Down
Loading