Algorithm for Packing Registers?

L

lynto

Greetings:

Does anyone have an algorithm for packing registers? For
example, if i had a string like (4, 8, 28, 30, 17, 5, 2, 1)
I would like to pack it for 32 bits like so:

- 30:1
- 4:28
- 17:5:2

Any ideas?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,600
Members
45,180
Latest member
CryptoTax Software
Top