Update comments.  Simplify names.
Simplify.
Sort.
Sort.
Replace (ptr)0 with macros.
_bits -> _xbits
Clarity.