From 5995f817ee79e544fa3809da81f84304d8684c3a Mon Sep 17 00:00:00 2001 From: Levi Broderick Date: Mon, 8 Apr 2019 14:53:29 -0700 Subject: [PATCH] Clarify that vector read is unaligned --- .../shared/System/Text/Unicode/Utf16Utility.Validation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.Private.CoreLib/shared/System/Text/Unicode/Utf16Utility.Validation.cs b/src/System.Private.CoreLib/shared/System/Text/Unicode/Utf16Utility.Validation.cs index 83f87f9..7f8e8c1 100644 --- a/src/System.Private.CoreLib/shared/System/Text/Unicode/Utf16Utility.Validation.cs +++ b/src/System.Private.CoreLib/shared/System/Text/Unicode/Utf16Utility.Validation.cs @@ -73,7 +73,7 @@ namespace System.Text.Unicode do { - Vector128 utf16Data = Sse2.LoadVector128((ushort*)pInputBuffer); + Vector128 utf16Data = Sse2.LoadVector128((ushort*)pInputBuffer); // unaligned uint mask = (uint)Sse2.MoveMask( Sse2.Or( -- 2.7.4