patch-2.4.7 linux/arch/cris/lib/checksumcopy.S
Next file: linux/arch/cris/lib/dram_init.S
Previous file: linux/arch/cris/lib/checksum.S
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Wed Jul 4 11:50:39 2001
- Orig file:
v2.4.6/linux/arch/cris/lib/checksumcopy.S
- Orig date:
Fri Apr 6 10:42:55 2001
diff -u --recursive --new-file v2.4.6/linux/arch/cris/lib/checksumcopy.S linux/arch/cris/lib/checksumcopy.S
@@ -1,4 +1,4 @@
-/* $Id: checksumcopy.S,v 1.4 2001/02/19 11:11:34 bjornw Exp $
+/* $Id: checksumcopy.S,v 1.5 2001/05/29 11:40:14 markusl Exp $
* A fast checksum+copy routine using movem
* Copyright (c) 1998, 2001 Axis Communications AB
*
@@ -17,6 +17,8 @@
;; r13 - checksum
;; check for breakeven length between movem and normal word looping versions
+ ;; we also do _NOT_ want to compute a checksum over more than the
+ ;; actual length when length < 40
cmpu.w 80,r12
blo word_loop
@@ -24,6 +26,8 @@
;; need to save the registers we use below in the movem loop
;; this overhead is why we have a check above for breakeven length
+ ;; only r0 - r8 have to be saved, the other ones are clobber-able
+ ;; according to the ABI
subq 9*4,sp
movem r8,[sp]
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)