Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
9bf79539
Commit
9bf79539
authored
Jan 21, 2008
by
Jesper Nilsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CRIS v10: Remove duplicated folding of carry from lib/checksum.S, it is not needed.
Also, remove useless CVS id tag.
parent
ab59284e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
arch/cris/arch-v10/lib/checksum.S
arch/cris/arch-v10/lib/checksum.S
+1
-7
No files found.
arch/cris/arch-v10/lib/checksum.S
View file @
9bf79539
/*
$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
*
...
...
@@ -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
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment