dmaHD: Optimized inner loops.