• Snazz@lemmy.world
    link
    fedilink
    arrow-up
    24
    ·
    vor 1 Jahr

    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