public static Int128 operator |(Int128 a, Int128 b) { Int128 c; UInt128.Or(out c.v, ref a.v, ref b.v); return(c); }
public void Place(PieceBitmap bitmap, int x, int y) { #if SAFE_MODE || DEBUG if (!CanPlace(bitmap, x, y)) { throw new Exception("Cannot place piece here, it overlaps"); } #endif //var shifted = bitmap.Bitmap << (x + y * Width); var shifted = bitmap.GetShifted(x, y); //_state |= shifted; UInt128.Or(out _state, ref _state, ref shifted); }