csumpartialcopygeneric.S (712cba5d87a6c0e980ee5fad45734e189c4d7151) | csumpartialcopygeneric.S (8478132a8784605fe07ede555f7277d989368d73) |
---|---|
1/* 2 * linux/arch/arm/lib/csumpartialcopygeneric.S 3 * 4 * Copyright (C) 1995-2001 Russell King 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. 9 */ 10#include <asm/assembler.h> | 1/* 2 * linux/arch/arm/lib/csumpartialcopygeneric.S 3 * 4 * Copyright (C) 1995-2001 Russell King 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. 9 */ 10#include <asm/assembler.h> |
11#include <asm/export.h> | |
12 13/* 14 * unsigned int 15 * csum_partial_copy_xxx(const char *src, char *dst, int len, int sum, ) 16 * r0 = src, r1 = dst, r2 = len, r3 = sum 17 * Returns : r0 = checksum 18 * 19 * Note that 'tst' and 'teq' preserve the carry flag. --- 307 unchanged lines hidden (view full) --- 327 adcs sum, sum, r4 328 load1l r4 329 mov r5, r4, get_byte_0 330 strb r5, [dst], #1 331 adcs sum, sum, r4, lspush #24 332 mov r5, r4, get_byte_1 333 b .Lexit 334FN_EXIT | 11 12/* 13 * unsigned int 14 * csum_partial_copy_xxx(const char *src, char *dst, int len, int sum, ) 15 * r0 = src, r1 = dst, r2 = len, r3 = sum 16 * Returns : r0 = checksum 17 * 18 * Note that 'tst' and 'teq' preserve the carry flag. --- 307 unchanged lines hidden (view full) --- 326 adcs sum, sum, r4 327 load1l r4 328 mov r5, r4, get_byte_0 329 strb r5, [dst], #1 330 adcs sum, sum, r4, lspush #24 331 mov r5, r4, get_byte_1 332 b .Lexit 333FN_EXIT |
335FN_EXPORT | |