Jcd.BitManipulation

A bit manipulation readability enhancement library.

Jcd.BitManipulation

Jcd.BitManipulation.Algorithms.SByteAlgorithmsExtensions

SByteAlgorithmsExtensions.PopCount(this sbyte) Method

Counts the bits that are set to 1 in a number.

public static int PopCount(this sbyte number);

Parameters

number System.SByte

The number to evaluate.

Returns

System.Int32 The count of the bits set to 1.