import { AbstractInteger } from './AbstractInteger'; import { VALUE, SPI } from './ops/symbols'; /** * Perform a bitwise not on the integer. * * @param a */ export function bitwiseNot>(a: I): I { const spi = a[SPI]; const aValue = a[VALUE]; const r = spi.bitwiseNot(aValue); return spi.newInstance(r); }