DSP code simplifications