Tag Archives: masking

The X-Factor (OR The Power of XOR)

Once upon a time, a girl (non-computer scientist) had bought two pieces of cake for coffee. She asked her nerdy boy-friend: ‘Do you want this one or that one?’ He said ‘Thanks!’ and he quickly moved both pieces onto his … Continue reading

Posted in Bit-Twiddling, Uncategorized | Tagged , , , | Leave a comment

Masking

In this posting I’m going to explain a bit-twiddling technique called masking. It is used to extract (and alter) specific bits in a word of bits, for example a byte. You might be familiar with IP subnet masks in network … Continue reading

Posted in Bit-Twiddling, Uncategorized | Tagged , , , , | Comments Off on Masking