Top "Bits" questions

A bit is a single binary digit.

What is the fastest way to count set bits in UInt32

What is the fastest way to count the number of set bits (i.e. count the number of 1s) in …

c# count set bits uint32
Extract bit sequences of arbitrary length from byte[] array efficiently

I'm looking for the most efficient way of extracting (unsigned) bit sequences of arbitrary length (0 <= length <= 16) at arbitrary …

java bit-manipulation bits
Converting sbyte to byte

I have a variable of type sbyte and would like to copy the content to a byte. The conversion wouldn't …

c# byte bits
Converting String type binary number to bit in java

I have a question about converting String type binary number to bit and write in the txt file. For example …

java bit bits bitarray
What is the best way to do Bit Field manipulation in Python?

I'm reading some MPEG Transport Stream protocol over UDP and it has some funky bitfields in it (length 13 for example). …

python udp bits bit-fields
Parsing Yann LeCun's MNIST IDX file format

I would like to understand how to open this version of the MNIST data set. For example, the training set …

python binary bits mnist
How do i find bits in virtual and physical address?

The question is: Consider a virtual address space of 256 pages with page size of 4KB, mapped onto a physical memory …

operating-system bits virtual-address-space page-size
Portable code - bits per char

I know that the C/C++ standards only guarantee a minimum of 8 bits per char, and that theoretically 9/16/42/anything else …

c++ c char bits