Add comment to bit manipulation functions.
Adapt to DomTree changes in r199104