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)); } |
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)); } |