swr: reorder the operations in the noise shaping code