sfp.int_part = htons((u_int16_t)d); sfp.fraction = htons((u_int16_t)((d - (u_int16_t)d) * USHRT_MAX));
sfp.int_parts = htons((u_int16_t)d); sfp.fractions = htons((u_int16_t)((d - (u_int16_t)d) * USHRT_MAX));
d_to_sfp(double d){	struct s_fixedpt	sfp;	sfp.int_part = htons((u_int16_t)d);	sfp.fraction = htons((u_int16_t)((d - (u_int16_t)d) * USHRT_MAX));	return (sfp);}