/* @s1: pointer to first area @s2: pointer to second area  */
int memcmp(const void *s1, const void *s2, size_t n)
/* @s1: pointer to first area @s2: pointer to second area  */
int memcmp(const void *s1, const void *s2, size_t n)
{
	const u8 *pos1 = s1;
	const u8 *pos2 = s2;
	for (; n; --n) {
		if (*pos1 != *pos2)
			return *pos1 - *pos2;
		++pos1;
		++pos2;
	}
	return 0;
}