diff options
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Buffers/Text/FormattingHelpers.CountDigits.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Buffers/Text/FormattingHelpers.CountDigits.cs b/src/System.Private.CoreLib/shared/System/Buffers/Text/FormattingHelpers.CountDigits.cs index 8982803bb9..35545c4a07 100644 --- a/src/System.Private.CoreLib/shared/System/Buffers/Text/FormattingHelpers.CountDigits.cs +++ b/src/System.Private.CoreLib/shared/System/Buffers/Text/FormattingHelpers.CountDigits.cs @@ -104,9 +104,9 @@ namespace System.Buffers.Text [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int CountHexDigits(ulong value) { - if (Lzcnt.IsSupported && IntPtr.Size == 8) + if (Lzcnt.X64.IsSupported) { - int right = 64 - (int)Lzcnt.LeadingZeroCount(value | 1); + int right = 64 - (int)Lzcnt.X64.LeadingZeroCount(value | 1); return (right + 3) >> 2; } |