Обложка канала

Библиотека шарписта

Полезные материалы по всему, что может быть интересно разработчику на C#.

Библиотека шарписта

4 года назад
Открыть в
Алгоритм подсчета количества ведущих нулей на C# от Эндрю Лока. Читать
Counting the leading zeroes in a binary number with C#

In this post I describe an algorithm to count the number of leading zeroes in a ulong, study how it works, and benchmark it against alternatives.

Andrew Lock | .NET Escapades