From b5f0f08183934d2f2e7db9acfeb3e618ddd2377e Mon Sep 17 00:00:00 2001 From: Lephe Date: Sun, 26 Mar 2023 20:40:48 +0200 Subject: [PATCH] usb: use optimized DSP loop for read from module --- src/usb/read4.S | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/usb/read4.S b/src/usb/read4.S index cbf837b..ab746f2 100644 --- a/src/usb/read4.S +++ b/src/usb/read4.S @@ -75,29 +75,7 @@ _usb_pipe_read4: bf.s .unaligned and r3, _datasize -#define VERSION 0 - .aligned: - -#if VERSION == 0 - mov.l @_fifo, r3 - dt r2 - - mov.l r3, @_data - add #4, _data - - bf.s .aligned - nop -#elif VERSION == 1 - mov _fifo, r3 - nop - -9: movs.l @r3, x0 - dt r2 - - bf.s 9b - movs.l x0, @_data+ -#elif VERSION == 2 ldrs .al_b ldre .al_e ldrc r2 @@ -105,7 +83,6 @@ _usb_pipe_read4: .al_b: movs.l @r3, x0 .al_e: movs.l x0, @_data+ -#endif bra 3f nop