Fix signed unsigned compare in dsp library