Thanks for reviewing this. > One minor suggestion: I would prefer to use mask macros to make the "& > 1" and "& ~1L" operations more explicit. Good suggestion. I changed the code to use set_nth_bit/clear_nth_bit/is_set_nth_bit. Roland.