leastsignificantbit
The least significant bit (LSB) is the rightmost bit in the binary representation of an integer, corresponding to the value 2^0, or 1. It has the smallest weight among the bits in the word, and flipping it changes the value by one. For unsigned integers, the LSB determines parity: a number is even if the LSB is 0 and odd if it is 1.
In practice, the LSB can be accessed by x mod 2 or by the bitwise operation x
Common bit tricks involve the LSB. The expression x & -x isolates the least significant 1 bit of
Applications of the LSB span data encoding and processing. Parity checks in data transmission use the LSB
Notes: the meaning of the LSB depends on the representation; in multi-byte words, endianness concerns byte order