Whats the most efficient way of implementing a Radix-sorting algorithm in C, that sorts by the binary representation (on an array of integeres)?
I would like to be able to give a number n representing the number of elements to sort, and also a value b telling how many binary digits you want to be interpreted as one digit in the sorting algorithm, so that you can vary the n and b depending on how big your numbers are.
Any suggestions how to implement this?