A C version of Rick Lyon's Matlab implementation of Hogenauer's CIC filter register pruning algorithm