__XBITS - arbitrary-length endian-aware bIt field manipulation