I decided I didn't like calculating masks and offsets anymore. You can come along too.
https://codeberg.org/IcedQuinn/bitnest