sph_enc16be(void *dst, unsigned val)
{
	((unsigned char *)dst)[0] = (unsigned char)(val >> 8);
	((unsigned char *)dst)[1] = (unsigned char)val;
}
sph_enc16be(void *dst, unsigned val)
{
	((unsigned char *)dst)[0] = (unsigned char)(val >> 8);
	((unsigned char *)dst)[1] = (unsigned char)val;
}