Today I'm going to set, clear, and test a single bit in an SSE register.
On Mondays I don't have to explain why.
First, we use the trick from
that lets us generate constants
where all set bits are contiguous,
and apply it to the case where we want only one bit.
We start by setting all bits in xmm0.
We then shift ...