Lines Matching full:sum
52 u_int sum = 0; in in_cksum_hdr() local
61 : "+r" (sum) in in_cksum_hdr()
69 sum = (sum & 0xffff) + (sum >> 16); in in_cksum_hdr()
70 if (sum > 0xffff) in in_cksum_hdr()
71 sum -= 0xffff; in in_cksum_hdr()
73 return ~sum & 0xffff; in in_cksum_hdr()
78 in_addword(u_short sum, u_short b) in in_addword() argument
83 : "+r" (sum) in in_addword()
87 return (sum); in in_addword()
91 in_pseudo(u_int sum, u_int b, u_int c) in in_pseudo() argument
97 : "+r" (sum) in in_pseudo()
102 sum = (sum & 0xffff) + (sum >> 16); in in_pseudo()
103 if (sum > 0xffff) in in_pseudo()
104 sum -= 0xffff; in in_pseudo()
105 return (sum); in in_pseudo()