fix name_hash calculation on big-endian cpu