Negabinary manipulation functions