Skip to content

Commit

Permalink
MIPS: IP checksums: Remove unncessary folding of sum to 16 bit.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 11, 2008
1 parent 384740d commit d86a812
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions arch/mips/lib/csum_partial.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d86a812

Please sign in to comment.