projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
384740d
)
MIPS: IP checksums: Remove unncessary folding of sum to 16 bit.
author
Ralf Baechle
<ralf@linux-mips.org>
Sat, 11 Oct 2008 15:18:53 +0000
(16:18 +0100)
committer
Ralf Baechle
<ralf@linux-mips.org>
Sat, 11 Oct 2008 15:18:53 +0000
(16:18 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/lib/csum_partial.S
patch
|
blob
|
history
diff --git
a/arch/mips/lib/csum_partial.S
b/arch/mips/lib/csum_partial.S
index edac9892c51a19a5e8084ad26ca5584d54c78499..201d82ee4c7150a08ea85eadbb7d74052711f5ff 100644
(file)
--- a/
arch/mips/lib/csum_partial.S
+++ b/
arch/mips/lib/csum_partial.S
@@
-276,11
+276,6
@@
LEAF(csum_partial)
dsra32 sum, sum, 0
addu sum, v1
#endif
- sll v1, sum, 16
- addu sum, v1
- sltu v1, sum, v1
- srl sum, sum, 16
- addu sum, v1
/* odd buffer alignment? */
beqz t7, 1f
@@
-678,11
+673,6
@@
EXC( sb t0, NBYTES-2(dst), .Ls_exc)
dsra32 sum, sum, 0
addu sum, v1
#endif
- sll v1, sum, 16
- addu sum, v1
- sltu v1, sum, v1
- srl sum, sum, 16
- addu sum, v1
/* odd buffer alignment? */
beqz odd, 1f