Perf: Consolidate implementation of LeadingZeroCount (dotnet/coreclr#22497)
authorGrant <grant@jesanna.com>
Wed, 13 Feb 2019 22:17:01 +0000 (14:17 -0800)
committerTanner Gooding <tagoo@outlook.com>
Wed, 13 Feb 2019 22:17:01 +0000 (14:17 -0800)
commit2485b958100c5252189469d5f780cc6777517f33
treef20c94df13a6dd6e97ae205d406c6964b0816e7d
parent374881aa5fa327108239e055ee84445a9bd6dbd9
Perf: Consolidate implementation of LeadingZeroCount (dotnet/coreclr#22497)

* Perf: BitOps.LeadingZeroCount

* CR fix

* CR fixes

* Optimization

* Revert

* Confirmed fix

* Simplify

* Return int

* Fixes

* Simplify

* CR fixes

* CR fixes

* Fix unit failure on Linux-musl x64 Debug

* CR fixes

* CR fixes

* Cleanup

Commit migrated from https://github.com/dotnet/coreclr/commit/eee8c24c0351605909f93481b54d5525c76980f4
src/libraries/System.Private.CoreLib/src/System/BitOps.cs
src/libraries/System.Private.CoreLib/src/System/Buffers/Text/FormattingHelpers.CountDigits.cs
src/libraries/System.Private.CoreLib/src/System/Buffers/Utilities.cs
src/libraries/System.Private.CoreLib/src/System/Decimal.DecCalc.cs
src/libraries/System.Private.CoreLib/src/System/Number.BigInteger.cs
src/libraries/System.Private.CoreLib/src/System/Number.DiyFp.cs
src/libraries/System.Private.CoreLib/src/System/Number.Dragon4.cs
src/libraries/System.Private.CoreLib/src/System/SpanHelpers.Byte.cs
src/libraries/System.Private.CoreLib/src/System/SpanHelpers.Char.cs