Implement and test rtl bitmap functions.