tidysq icon indicating copy to clipboard operation
tidysq copied to clipboard

Use template functions for packing and unpacking instead of explicitly specyfying bit shifts

Open DominikRafacz opened this issue 5 years ago • 0 comments

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.

DominikRafacz avatar Dec 17 '20 09:12 DominikRafacz