Lines Matching refs:sum
234 byte sum; in chksum_bios_calc_value() local
236 sum = 0; in chksum_bios_calc_value()
238 sum = sum + *( data + i ); in chksum_bios_calc_value()
240 sum = -sum; /* iso ensures -s + s == 0 on unsigned types */ in chksum_bios_calc_value()
241 return( sum ); in chksum_bios_calc_value()
261 byte sum; in chksum__32__calc_value() local
266 sum = 0; in chksum__32__calc_value()
269 sum = sum + *( data + offset + i ); in chksum__32__calc_value()
272 sum = -sum; in chksum__32__calc_value()
273 return( sum ); in chksum__32__calc_value()
315 byte sum; in chksum__mp__calc_value() local
320 sum = 0; in chksum__mp__calc_value()
323 sum = sum + *( data + offset + i ); in chksum__mp__calc_value()
326 sum = -sum; in chksum__mp__calc_value()
327 return( sum ); in chksum__mp__calc_value()
369 byte sum; in chksum_pcmp_calc_value() local
380 sum = 0; in chksum_pcmp_calc_value()
383 sum = sum + *( data + offset + i ); in chksum_pcmp_calc_value()
386 sum = -sum; in chksum_pcmp_calc_value()
387 return( sum ); in chksum_pcmp_calc_value()
429 byte sum; in chksum__pir_calc_value() local
435 sum = 0; in chksum__pir_calc_value()
438 sum = sum + *( data + offset + i ); in chksum__pir_calc_value()
441 sum = -sum; in chksum__pir_calc_value()
442 return( sum ); in chksum__pir_calc_value()