tidysq
tidysq copied to clipboard
Use template functions for packing and unpacking instead of explicitly specyfying bit shifts
In files inst/include/{unpack_common, unpack_string, pack}.h there are several versions of packing and unpacking which are hardcoded. They could be written using arithmetic of shifts wrapped in templates and expanded into those functions at compile time.