coja@lemmy.ml to Programmer Humor@lemmy.ml · 1 年前Find yourselflemmy.mlimagemessage-square102fedilinkarrow-up1624arrow-down128
arrow-up1596arrow-down1imageFind yourselflemmy.mlcoja@lemmy.ml to Programmer Humor@lemmy.ml · 1 年前message-square102fedilink
minus-squareSnazz@lemmy.worldlinkfedilinkarrow-up19·1 年前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
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