Add support for left-to-right bitscanning, for use in modular