Lines Matching +full:carry +full:- +full:less
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
22 #define CARRY(x, y) ((0x0002ULL*x)<<y) macro
27 #define VR_CARRY(a, b, c, d) (CARRY(a, 48) + CARRY(b, 32) + CARRY(c, 16) \
28 + CARRY(d, 0))
47 * computes the checksum of the TCP/UDP pseudo-header
48 * returns a 16-bit checksum, already complemented.
66 /* Fold down to 32-bits so we don't lose in the typedef-less in csum_tcpudp_nofold()
77 * Do a 64-bit checksum on an arbitrary memory area..
81 * ways to do the carry, but this is reasonable.
96 start = 0xF & (16-(((int) ptr) & 0xF)) ; in do_csum()
100 mid = len - start; in do_csum()
132 for (i = 0; i < mid-1; i++) { in do_csum()