Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84983
b: refs/heads/master
c: 9bf7953
h: refs/heads/master
i:
  84981: c24493b
  84979: de7e39b
  84975: a2a07ff
v: v3
  • Loading branch information
Jesper Nilsson committed Feb 8, 2008
1 parent 9d5be54 commit 3d062ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: ab59284eaeb9560926ef5f0a233d91ecb4e64e1a
refs/heads/master: 9bf79539ed0866f1f67d09e807e745eae9588adb
8 changes: 1 addition & 7 deletions trunk/arch/cris/arch-v10/lib/checksum.S
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: checksum.S,v 1.1 2001/12/17 13:59:27 bjornw Exp $
/*
* A fast checksum routine using movem
* Copyright (c) 1998-2001 Axis Communications AB
*
Expand Down Expand Up @@ -61,8 +61,6 @@ _mloop: movem [$r10+],$r9 ; read 10 longwords

ax
addq 0,$r12
ax ; do it again, since we might have generated a carry
addq 0,$r12

subq 10*4,$r11
bge _mloop
Expand All @@ -88,10 +86,6 @@ _word_loop:
lsrq 16,$r13 ; r13 = checksum >> 16
and.d $r9,$r12 ; checksum = checksum & 0xffff
add.d $r13,$r12 ; checksum += r13
move.d $r12,$r13 ; do the same again, maybe we got a carry last add
lsrq 16,$r13
and.d $r9,$r12
add.d $r13,$r12

_no_fold:
cmpq 2,$r11
Expand Down

0 comments on commit 3d062ba

Please sign in to comment.