hashcmp(): inline memcmp() by hand to optimize