1 /* SPDX-License-Identifier: GPL-2.0 */
5 * This is a version of ip_compute_csum() optimized for IP headers,
6 * which always checksum on 4 octet boundaries.
8 * extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
12 .type _ip_fast_csum,function
14 !! TXRPT needs loops - 1
20 ADDS D0Re0,D0Re0,D1Ar3
24 AND D0Re0,D0Re0,#0xffff
25 AND D0Ar4,D0Ar4,#0xffff
30 AND D0Re0,D0Re0,#0xffff
33 .size _ip_fast_csum,.-_ip_fast_csum