Function achks8_16

Function Documentation

uint16_t achks8_16(const uint8_t *buf, size_t n_bytes, uint8_t seed)

Compute a 16-bit checksum (add-ignore-carry) over 8-bit values.

Parameters:
  • buf – Buffer to compute over

  • n_bytes – # bytes in buffer

  • seed – Starting value for checksum

Returns:

computed 16-bit checksum