coja to Programmer Humor@lemmy.ml • 11 months agoFind yourselflemmy.mlimagemessage-square104fedilinkarrow-up1649arrow-down129
arrow-up1620arrow-down1imageFind yourselflemmy.mlcoja to Programmer Humor@lemmy.ml • 11 months agomessage-square104fedilink
minus-square@Snazz@lemmy.worldlinkfedilink24•11 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