DSP code cleanups