Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111127
b: refs/heads/master
c: 60724ca
h: refs/heads/master
i:
  111125: d7258ca
  111123: 8931459
  111119: 3b033e6
v: v3
  • Loading branch information
Ralf Baechle committed Oct 11, 2008
1 parent 1a0a3fa commit 137acbd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d86a8123b11a9a40d850f6e88b89c948c2477da3
refs/heads/master: 60724ca59eda766a30be57aec6b49bc3e2bead91
12 changes: 0 additions & 12 deletions trunk/arch/mips/lib/csum_partial.S
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,14 @@
#define UNIT(unit) ((unit)*NBYTES)

#define ADDC(sum,reg) \
.set push; \
.set noat; \
ADD sum, reg; \
sltu v1, sum, reg; \
ADD sum, v1; \
.set pop

#define ADDC32(sum,reg) \
.set push; \
.set noat; \
addu sum, reg; \
sltu v1, sum, reg; \
addu sum, v1; \
.set pop

#define CSUM_BIGCHUNK1(src, offset, sum, _t0, _t1, _t2, _t3) \
LOAD _t0, (offset + UNIT(0))(src); \
Expand Down Expand Up @@ -267,8 +261,6 @@ LEAF(csum_partial)
1: ADDC(sum, t1)

/* fold checksum */
.set push
.set noat
#ifdef USE_DOUBLE
dsll32 v1, sum, 0
daddu sum, v1
Expand All @@ -284,7 +276,6 @@ LEAF(csum_partial)
srl sum, sum, 8
or sum, v1
andi sum, 0xffff
.set pop
1:
.set reorder
/* Add the passed partial csum. */
Expand Down Expand Up @@ -664,8 +655,6 @@ EXC( sb t0, NBYTES-2(dst), .Ls_exc)
ADDC(sum, t2)
.Ldone:
/* fold checksum */
.set push
.set noat
#ifdef USE_DOUBLE
dsll32 v1, sum, 0
daddu sum, v1
Expand All @@ -681,7 +670,6 @@ EXC( sb t0, NBYTES-2(dst), .Ls_exc)
srl sum, sum, 8
or sum, v1
andi sum, 0xffff
.set pop
1:
.set reorder
ADDC32(sum, psum)
Expand Down

0 comments on commit 137acbd

Please sign in to comment.