Friends xosfaere

Meta Exotica

Meta Exotica

Comming soonish.

metaexotica.com [1]

Bit twiddling

public static byte Set(this byte x, int i, bool b = true, bool msb = true)
{
    var j = (byte)(msb ? i : 7 - i);
    return (byte)(b ? x | (1 << j) : x ^ (1 << j));
}

Leave a Reply

Your email address will not be published. Required fields are marked *

Aasemoon © 1992 - 2022
-->