coja@lemmy.ml to Programmer Humor@lemmy.ml · 9 months agoFind yourselflemmy.mlimagemessage-square64fedilinkarrow-up1411arrow-down122
arrow-up1389arrow-down1imageFind yourselflemmy.mlcoja@lemmy.ml to Programmer Humor@lemmy.ml · 9 months agomessage-square64fedilink
minus-squareSnazz@lemmy.worldlinkfedilinkarrow-up15·9 months agoBit hacker 2 is really fascinating. It uses a bit mask of all 1s (-1) or all 0s (0) and takes advantage of the fact that y ^ (x ^ y) = x and y ^ 0 = y
Bit hacker 2 is really fascinating. It uses a bit mask of all 1s (-1) or all 0s (0) and takes advantage of the fact that y ^ (x ^ y) = x and y ^ 0 = y