import { AbstractInteger } from './AbstractInteger'; import { VALUE, SPI } from './ops/symbols'; /** * Perform a bitwise and operation between two integers. * * @param a * @param b */ export function bitwiseAnd>(a: I, b: I): I { const spi = a[SPI]; const aValue = a[VALUE]; const bValue = b[VALUE]; const r = spi.bitwiseAnd(aValue, bValue); return spi.newInstance(r); }