Luna::strhash16

constexpr u16 strhash16(const c8 *s, u16 h=0)

A specialization of strhash that computes 16-bit hash code.

Parameters

  • in s

    A pointer to one null-terminated string to compute.

  • in h

    A initial hash value. See memhash for details.

Return value

Returns the hash code of the string.