aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/lib/csum_partial.S12
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/mips/lib/csum_partial.S b/arch/mips/lib/csum_partial.S
index 201d82ee4c71..84d5e6a1e76f 100644
--- a/arch/mips/lib/csum_partial.S
+++ b/arch/mips/lib/csum_partial.S
@@ -55,20 +55,14 @@
55#define UNIT(unit) ((unit)*NBYTES) 55#define UNIT(unit) ((unit)*NBYTES)
56 56
57#define ADDC(sum,reg) \ 57#define ADDC(sum,reg) \
58 .set push; \
59 .set noat; \
60 ADD sum, reg; \ 58 ADD sum, reg; \
61 sltu v1, sum, reg; \ 59 sltu v1, sum, reg; \
62 ADD sum, v1; \ 60 ADD sum, v1; \
63 .set pop
64 61
65#define ADDC32(sum,reg) \ 62#define ADDC32(sum,reg) \
66 .set push; \
67 .set noat; \
68 addu sum, reg; \ 63 addu sum, reg; \
69 sltu v1, sum, reg; \ 64 sltu v1, sum, reg; \
70 addu sum, v1; \ 65 addu sum, v1; \
71 .set pop
72 66
73#define CSUM_BIGCHUNK1(src, offset, sum, _t0, _t1, _t2, _t3) \ 67#define CSUM_BIGCHUNK1(src, offset, sum, _t0, _t1, _t2, _t3) \
74 LOAD _t0, (offset + UNIT(0))(src); \ 68 LOAD _t0, (offset + UNIT(0))(src); \
@@ -267,8 +261,6 @@ LEAF(csum_partial)
2671: ADDC(sum, t1) 2611: ADDC(sum, t1)
268 262
269 /* fold checksum */ 263 /* fold checksum */
270 .set push
271 .set noat
272#ifdef USE_DOUBLE 264#ifdef USE_DOUBLE
273 dsll32 v1, sum, 0 265 dsll32 v1, sum, 0
274 daddu sum, v1 266 daddu sum, v1
@@ -284,7 +276,6 @@ LEAF(csum_partial)
284 srl sum, sum, 8 276 srl sum, sum, 8
285 or sum, v1 277 or sum, v1
286 andi sum, 0xffff 278 andi sum, 0xffff
287 .set pop
2881: 2791:
289 .set reorder 280 .set reorder
290 /* Add the passed partial csum. */ 281 /* Add the passed partial csum. */
@@ -664,8 +655,6 @@ EXC( sb t0, NBYTES-2(dst), .Ls_exc)
664 ADDC(sum, t2) 655 ADDC(sum, t2)
665.Ldone: 656.Ldone:
666 /* fold checksum */ 657 /* fold checksum */
667 .set push
668 .set noat
669#ifdef USE_DOUBLE 658#ifdef USE_DOUBLE
670 dsll32 v1, sum, 0 659 dsll32 v1, sum, 0
671 daddu sum, v1 660 daddu sum, v1
@@ -681,7 +670,6 @@ EXC( sb t0, NBYTES-2(dst), .Ls_exc)
681 srl sum, sum, 8 670 srl sum, sum, 8
682 or sum, v1 671 or sum, v1
683 andi sum, 0xffff 672 andi sum, 0xffff
684 .set pop
6851: 6731:
686 .set reorder 674 .set reorder
687 ADDC32(sum, psum) 675 ADDC32(sum, psum)