Lines Matching refs:result
52 ulong result = 0; in cdp_compute_csum() local
59 result = *buff << 8; in cdp_compute_csum()
65 result += *p++; in cdp_compute_csum()
67 if (result & 0x80000000) in cdp_compute_csum()
68 result = (result & 0xFFFF) + (result >> 16); in cdp_compute_csum()
78 result = (result & 0xffff0000) | in cdp_compute_csum()
79 ((result + leftover) & 0x0000ffff); in cdp_compute_csum()
81 while (result >> 16) in cdp_compute_csum()
82 result = (result & 0xFFFF) + (result >> 16); in cdp_compute_csum()
85 result = ((result >> 8) & 0xff) | in cdp_compute_csum()
86 ((result & 0xff) << 8); in cdp_compute_csum()
90 result = (result & 0xffff) + (result >> 16); in cdp_compute_csum()
92 result = (result & 0xffff) + (result >> 16); in cdp_compute_csum()
94 result = (result & 0xffff) + (result >> 16); in cdp_compute_csum()
97 csum = ~(ushort)result; in cdp_compute_csum()